create_version_dirs: Create set of directories for a new model version

View source: R/utils-create-version-dirs.R

create_version_dirsR Documentation

Create set of directories for a new model version

Description

Create set of directories for a new model version

Usage

create_version_dirs(
  year,
  dir_models = "/srv/hake/models",
  version = "01-version"
)

Arguments

year

A four-digit integer specifying the assessment year. E.g., for an assessment that uses data up to 2023 and was due in 2024, the assessment year is 2024.

dir_models

A file path where you want to create the year directory. The default is the path that stores all of the model folders on hake- precision, i.e., "/srv/hake/models".

version

A string that starts with a two-digit integer and is followed by a dash and then the word "version".

Value

A vector of directory paths that were created is invisibly returned.

Author(s)

Kelli F. Johnson

Examples

## Not run: 
create_version_dirs(year = 2023, dir_models = getwd())
unlink("01-version", recursive = TRUE)

## End(Not run)

pacific-hake/hake-assessment documentation built on Nov. 8, 2024, 1:16 p.m.