download_package_rm.Rd
Uses resource_map and dataone::getPackage to download the data into a BagItFile. Then utils::unzip unzips the data and stores in the user's directory.
download_package_rm(
resource_map,
directory,
CNode = "PROD",
download_format = "application/bagit-097",
overwrite_directory = TRUE
)
the resource map that corresponds to the given data package
location that download.packages places the data
defaults to "PROD"
typically "application/bagit-097". Other possible formats currently unknown.
boolean that indicates whether or not the function should overwrite the directory
results of download