Learn R Programming

ecoretriever (version 0.2.1)

download: Download datasets via the EcoData Retriever.

Description

Directly downloads data files with no processing, allowing downloading of non-tabular data.

Usage

download(dataset, path = ".", sub_dir = FALSE, log_dir = NULL)

Arguments

dataset
the name of the dataset that you wish to download
path
the path where the data should be downloaded to
sub_dir
if true and the downloaded dataset is stored in subdirectories those subdirectories will be preserved and placed according the path argument, defaults to false.
log_dir
the location where the retriever log should be stored if the progress is not printed to the console

Examples

Run this code

ecoretriever::download('MCDB')
## list files downloaded
dir('.', pattern='MCDB')

Run the code above in your browser using DataLab