R/read_data_archived.R
read_data_archived.Rd
This function downloads and reads a data package available in the DataONE network to the R environment as a list object.
read_data_archived(data.pkg.doi, download.dir = NULL)
data.pkg.doi | (character) DOI of a data package available in the DataONE network (e.g. "doi:10.18739/A2DP3X"). |
---|---|
download.dir | (character) Directory to which the data package will be downloaded.
Default is |
(data package) Data package objects (as rendered by metajam
) in the
download directory.
(list of data objects) List of data objects created by metajam
.
Readable data objects are defined by in the metajam
package.
Tabular data is read into tibbles.
This function is a wrapper to the download_d1_data_pkg()
and
read_d1_data_pkg()
functions of the
metajam package, but configured
to output a list object usable by this project.
# NOT RUN { # Download data package to temporary directory and read output <- read_data_archived(data.pkg.doi = 'doi:10.18739/A2DP3X') # View data package content View(output) # }