download_survey() now also stores a reference.json file alongside the downloaded survey files, holding the survey's title, authors, year, version and DOI, so downstream tools can cite the survey without a further Zenodo query (#130).
download_survey() no longer warns when saving to a directory other than contactsurveys_dir(). Where files are saved and whether they persist is controlled by, and documented on, the directory argument, so the warning was redundant — and it previously fired even on the default tempdir() (#142).
Fixed list_surveys() returning a non-Zenodo DOI for surveys whose Zenodo record links a published journal article, which caused download_survey() to fail. The survey URL and version ordering are now derived from the OAI header identifier, so results do not depend on the order in which Zenodo lists a record's metadata identifiers. Resolves #145
This is a new package split off from the {socialmixr} package. It handles all interaction with the Zenodo repository containing social contact surveys, including listing available data sets, downloading data sets, and obtaining citations.
list_surveys()get_citation() - Resolves #38get_citation() - Resolves #52rate argument to download_survey() and list_surveys() to allow for retrying download if it fails, in a sensible fashion, using purrr::insistently() - Resolves #72contactsurveys_dir() ({ls_contactsurveys()}, {delete_contactsurveys_files()}, {delete_contactsurveys_dir()}, {delete_survey()}). Resolves #75, #76, #77