Download and parse the Microsoft Terminology Collection.
setup_terminology.RdSource()s the parser script bundled in inst/extdata/parse_locales.R,
then calls its download_and_parse_tbx() function to fetch the zip
from Microsoft's public download URL, validate the SHA-256 (if you
supply one), unzip, parse, and write the resulting translation table
to a per-user cache directory.
Usage
setup_terminology(
expected_sha256 = .MTC_EXPECTED_SHA256,
force = FALSE,
workers = max(1L, parallel::detectCores() - 1L),
quiet = FALSE
)Arguments
- expected_sha256
SHA-256 hex digest expected for the downloaded zip. Defaults to the digest of the version of the zip known to this release of spaghetti. A mismatch produces a warning (not an error), since Microsoft may republish the file. Pass
NULLto skip the check entirely.- force
If TRUE, re-download even if a cache exists.
- workers
Number of parallel TBX-parsing workers. Default detects cores - 1, capped to 8.
- quiet
If TRUE, suppress progress messages.
Dependencies
The parser uses the openxlsx2 package (for XML parsing) and
digest (for SHA-256 verification). Both are declared in
Suggests: and installed only if you call this function.