get_data: Download a data set

View source: R/get_data.R

get_dataR Documentation

Download a data set

Description

Download the files associated with a URI.

Usage

get_data(uri, path, group, files=NULL, cache=TRUE)

Arguments

uri

character. The URI of a dataset

path

character. The path to the Carob repo

group

character. The group name

files

character. If not NULL these files are copied to the raw data folder; and uri is not used to get the data. This can be useful for datasets that do not have a URI or are not hosted on a website with a standard protocol for data retrieval such as dataverse or CKAN. It can also be useful to process local files before they are published. Files can be either *all* have a http address, or *all* on the local file system

cache

logical. if TRUE the data are only downloaded again if they are not locally available

Value

character


reagro/carobiner documentation built on Dec. 4, 2024, 3:21 p.m.