Populate the local baseline-schema cache from a snapshot metadata directory
Source:R/oa_schema.R
oa_cache_schema.RdCopies unified_schema.csv files from an OpenAlex snapshot metadata
directory (e.g. /Volumes/openalex/openalex-snapshot_metadata) into
the user-level cache used by pro_request_parquet(schema = "auto").
Arguments
- source
Path to the snapshot metadata directory, e.g.
"/Volumes/openalex/openalex-snapshot_metadata".- entities
Character vector of entity names to cache, or
"all"(default) to cache every entity directory found undersource.- overwrite
Logical. Overwrite an existing cached file? Default
FALSE.- verbose
Logical. Print progress messages? Default
TRUE.
Details
Once cached, the schemas are used even when the source volume is not mounted.
Update the cache periodically to pick up new fields added by OpenAlex (run
with overwrite = TRUE).
See also
pro_request_parquet for the schema parameter.