View source: R/copy_SS_inputs.R
copy_SS_inputs | R Documentation |
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.
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
)
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 |
overwrite |
A logical value specifying if the existing file(s)
should be overwritten. The default value is |
recursive |
A logical value passed to the |
use_ss_new |
Use .ss_new files instead of original inputs? |
copy_exe |
Copy any executables found in |
copy_par |
Copy any .par files found in |
dir.exe |
Path to executable to copy instead of any in |
verbose |
A logical value specifying if output should be printed to the screen. |
A logical value is invisibly returned, indicating whether all input files were copied successfully.
Ian G. Taylor
Other run functions:
jitter()
,
populate_multiple_folders()
,
profile()
,
retro()
,
run()
,
tune_comps()
## Not run:
# A theoretical example if "old_model" was present
# but expect an error
copy_SS_inputs(
dir.old = "c:/SS/old_model",
dir.new = "c:/SS/new_model"
)
# A working example using files stored in {r4ss}
copy_SS_inputs(
dir.old = system.file("extdata", "simple_small", package = "r4ss"),
dir.new = "test"
)
unlink(test, recursive = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.