add.data.script {icesTAF}R 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)


[Package icesTAF version 4.2.0 Index]