View source: R/download_models.R
download_models | R Documentation |
Download and unzip the models folder stored on GitHub within the nmfs-ost/ss3-test-models repository.
download_models(
dir = file.path("inst", "extdata"),
branch = "main",
overwrite = FALSE
)
dir |
A file path where the downloaded |
branch |
A string specifying the desired branch of
nmfs-ost/ss3-test-models repository
that you want to download. The default is |
overwrite |
A logical value specifying if the existing file(s)
should be overwritten. The default value is |
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.
Kathryn Doering
nmfs-ost/ss3-test-models repository
download_models(dir = getwd())
model_name <- list.files("models") # see the model names
# remove files
unlink(file.path("models"), recursive = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.