Takes the cached extraction, optionally replaces bibliographic fields with
the fetched metadata (which is usually more reliable than the LLM's
reading), and stores the study with metawoRld::add_study_data(), which
validates it against the schema. The study is stored under its DOI/PMID,
so cache and project stay linked.
Usage
df_import_extraction(
identifier,
metawoRld_path = ".",
overwrite = FALSE,
merge_metadata = TRUE,
canonical_names = TRUE
)Arguments
- identifier
Study identifier.
- metawoRld_path
Project root.
- overwrite
Replace the study if it was imported before?
- merge_metadata
Use fetched title, authors, year, journal, DOI, PMID and abstract when available? Defaults to
TRUE.- canonical_names
Replace variable names that are synonyms in the project's
_rules.ymlwith the canonical name (e.g. "IL6" -> "IL-6")? The name as reported is kept in the data point'snotes. Defaults toTRUE.