The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
This vignette aims to showcase a use case when the user wants to download all the datasets of a data package using metajam
- download_d1_data_pkg
.
In this example we use a csv file storing packages returned after searching for soil bulk density
on Arctic Data Center and KNB data repositories.
# devtools::install_github("NCEAS/metajam")
library(metajam)
library(readr)
library(purrr)
# Directory to save the data set
"./Soil_bulk"
path_folder <-
# URL to read the search results stored as a csv on Google Drive
"https://drive.google.com/uc?export=download&id=1WTLP2BcXCXmUyv4kmntyhuPfrBNdPIqV" csv_search_results_url <-
# Create the local directory to store data sets
dir.create(path_folder, showWarnings = FALSE)
# Read the data listing from Google Drive: https://drive.google.com/open?id=1WTLP2BcXCXmUyv4kmntyhuPfrBNdPIqV
read_csv(csv_search_results_url)
data_listing <-
### Download the data and metadata ----
# Create the list of unique dois
unique(data_listing$identifier)
dois <-
# batch download the datasets
map(dois, ~download_d1_data_pkg(.x, path_folder)) data_folders <-
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.