add.data.script: Import a boot data script from ICES datasets repo

View source: R/add.data.script.R

add.data.scriptR Documentation

Import a boot data script from ICES datasets repo

Description

Download an ‘R’ file from the ICES datasets repo to fetch data including adding metadata via roxygen2 fields to the top of the file.

Usage

add.data.script(name, install.deps = TRUE, commit = FALSE)

Arguments

name

the name of the dataset.

install.deps

install packages used in the script if not already installed.

commit

should the boot script be added and committed to the analysis.

Examples

## Not run: 

# Create boot folder
mkdir(taf.boot.path())

# Create boot script, boot/mydata.R
add.data.script(name = "vms")

# Create metadata, boot/DATA.bib
taf.roxygenise(files = "vms.R")

# Run boot script, creating boot/data/vms/...
taf.boot()

## End(Not run)


icesTAF documentation built on March 31, 2023, 5:20 p.m.