copy_SS_inputs {r4ss} | R Documentation |
Copy a the Stock Synthesis input files from one directory to another
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
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,
dir.exe = NULL,
verbose = TRUE
)
Arguments
dir.old |
Location of model files to be copied, either an absolute path or relative to the working directory. |
dir.new |
New location to which the files should be copied, either an absolute path or relative to the working directory. |
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 or dir.exe (if provided)? |
copy_par |
Copy any .par files found in dir.old to dir.new? |
dir.exe |
Path to executable to copy instead of any in dir.old |
verbose |
Return updates of function progress to the R console? |
Value
Logical indicating whether all input files were copied successfully.
Author(s)
Ian Taylor
Examples
## Not run:
copy_SS_inputs(
dir.old = "c:/SS/old_model",
dir.new = "c:/SS/new_model"
)
## End(Not run)