copy_SS_inputs: Copy a the Stock Synthesis input files from one directory to...

Description Usage Arguments Value Author(s) Examples

View source: R/copy_SS_inputs.R

Description

Reads the starter.ss file to figure out the names of the control and data files, than copies those files along with starter.ss, forecast.ss, and wtatage.ss (if present) to a new directory, as specified.

Usage

1
2
3
copy_SS_inputs(dir.old = NULL, dir.new = NULL, create.dir = TRUE,
  overwrite = FALSE, recursive = FALSE, use_ss_new = FALSE,
  copy_exe = FALSE, copy_par = FALSE, verbose = TRUE)

Arguments

dir.old

Location of model files to be copied.

dir.new

New location to which the files should be copied.

create.dir

Create dir.new directory if it doesn't exist already?

overwrite

Overwrite existing files with matching names?

recursive

logical. Should elements of the path other than the last be created?

use_ss_new

Use .ss_new files instead of original inputs?

copy_exe

Copy any executables found in dir.old to dir.new?

copy_par

Copy any .par files found in dir.old to dir.new?

verbose

Return updates of function progress to the R console?

Value

Doesn't return anything

Author(s)

Ian Taylor

Examples

1
2
3
4
5
  ## Not run: 
    copy_SS_inputs(dir.old='c:/SS/old_model',
                   dir.new='c:/SS/new_model')
  
## End(Not run)

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