Skip to contents

Download data directly from package repository into the current environment.

Usage

sefra_data(name = NULL, description = "reference", verbose = TRUE)

Arguments

name

character string giving the name of the data to source. For a list of the available data this can be set to NULL (the default).

description

character string giving the description of the data version to use. By default description = "reference". If set to NULL then the function will request an input value to identify the data version.

verbose

logical value indicating whether the data description should be printed to screen.

Value

Similar to a call to data(), the sefra_data() function will load a named object into the global environment unless it is assigned.

Note

This function requires that a Personal Access Token (PAT) is correctly installed on your machine. To check this, use Sys.getenv("GITHUB_SEFRA_SEABIRDS_PAT"), which should return the PAT used to access the sefraInputs repository.