[Available for medRxiv only] This function allows users to import a maintained static snapshot of the medRxiv repository, instead of downloading a copy from the API, which can become unavailable during peak usage times. The function reads a manifest-driven snapshot artifact from the package's GitHub release assets by default.
mx_snapshot(
commit = "main",
from_date = NULL,
to_date = NULL,
manifest_url = default_snapshot_manifest_url(),
cache = TRUE
)A formatted dataframe containing the data from the snapshot artifact, with reconstructed `link_page` and `link_pdf` columns.
Deprecated. Only the default value "main" is supported. Use `manifest_url` to read a specific snapshot manifest.
Optional earliest date of interest ("YYYY-MM-DD" or Date). If supplied, records with `date` earlier than this are excluded.
Optional latest date of interest ("YYYY-MM-DD" or Date). If supplied, records with `date` later than this are excluded.
URL for a JSON snapshot manifest. Defaults to option `medrxivr.snapshot_manifest`, or the package's latest GitHub release manifest if that option is unset.
Logical. If TRUE, downloaded manifest snapshot files are cached between sessions. Defaults to TRUE.
Other data-source:
mx_api_content(),
mx_api_doi()