populate_multiple_folders: Populate multiple Stock Synthesis folders with input files

View source: R/populate_multiple_folders.R

populate_multiple_foldersR Documentation

Populate multiple Stock Synthesis folders with input files

Description

Creates a set of multiple folders and populate each with SS input files such as for the purpose of running a new version of SS for an existing set of test models.

Usage

populate_multiple_folders(
  outerdir.old = NULL,
  outerdir.new = NULL,
  create.dir = TRUE,
  overwrite = FALSE,
  use_ss_new = FALSE,
  exe.dir = NULL,
  exe.file = "ss.exe",
  exe.only = FALSE,
  verbose = TRUE
)

Arguments

outerdir.old

Location of existing outer directory containing subdirectories for each model.

outerdir.new

New outer directory into which the subfolders should be created.

create.dir

Create new outer directory if it doesn't exist already?

overwrite

Overwrite existing files with matching names?

use_ss_new

Use .ss_new files instead of original inputs?

exe.dir

Path to executable to copy into all the subfolders.

exe.file

Filename of executable to copy into all the subfolders. A value of NULL will skip copying the executable.

exe.only

Only copy exe files from exe.dir, don't copy input files

verbose

Return updates of function progress to the R console?

Value

Returns table of results indicating which directories were successfully populated with the model input files and/or executables

Author(s)

Ian Taylor

See Also

copy_SS_inputs()

Examples

## Not run: 
populate_multiple_folders(
  outerdir.old = "c:/SS/old_models",
  outerdir.new = "c:/SS/new_models",
  exe.dir = "c:/SS/SSv3.30.12.00"
)

## End(Not run)


r4ss documentation built on May 28, 2022, 1:11 a.m.