download_models: Download SS3 test models

View source: R/download_models.R

download_modelsR Documentation

Download SS3 test models

Description

Download and unzip the models folder stored on GitHub within the nmfs-ost/ss3-test-models repository.

Usage

download_models(
  dir = file.path("inst", "extdata"),
  branch = "main",
  overwrite = FALSE
)

Arguments

dir

A file path where the downloaded "models" subfolder will be written to.

branch

A string specifying the desired branch of nmfs-ost/ss3-test-models repository that you want to download. The default is "main", which is the stable/default branch.

overwrite

A logical value specifying if the existing file(s) should be overwritten. The default value is overwrite = FALSE.

Value

Invisibly return a logical revealing whether the files were copied (TRUE) or not (FALSE). This function is used for its side effects of downloading SS3 test models.

Author(s)

Kathryn Doering

References

nmfs-ost/ss3-test-models repository

Examples

download_models(dir = getwd())
model_name <- list.files("models") # see the model names
# remove files
unlink(file.path("models"), recursive = TRUE)

r4ss/r4ss documentation built on April 30, 2024, 4:42 a.m.