run_SS_models: Run multiple Stock Synthesis models

Description Usage Arguments Value Author(s) See Also Examples

View source: R/run_SS_models.R

Description

Loops over a vector of directories and iteratively runs SS in each one

Usage

1
2
3
run_SS_models(dirvec = NULL, model = "ss", extras = "-nox",
  systemcmd = FALSE, skipfinished = TRUE, intern = FALSE,
  verbose = TRUE, exe_in_path = FALSE)

Arguments

dirvec

List of directories containing the model files

model

Executable name

extras

Additional commands to use when running SS. Default = "-nox" will reduce the amount of command-line output.

systemcmd

Should R call SS using "system" function instead of "shell". This may be required when running R in Emacs. Default = FALSE.

skipfinished

Skip any folders that already contain a Report.sso file. This can be helpful if the function is interrupted.

intern

Show output in the R console or save to a file?

verbose

Return updates of function progress to the R console?

exe_in_path

logical. If TRUE, will look for exe in the PATH. If FALSE, will look for exe in the model folders. Default = FALSE.

Value

Returns table showing which directories had model run and which had errors like missing executable or Report.sso already present

Author(s)

Ian Taylor

See Also

copy_SS_inputs, populate_multiple_folders

Examples

1
2
3
4
5
6
  ## Not run: 
dirvec <- dir("c:/SS/models_to_run", full.names=TRUE)
run_SS_models(dirvec=dirvec)

  
## End(Not run)

r4ss/SStesting documentation built on July 7, 2020, 12:11 p.m.