Reads the gmacs.dat file to figure out the names of the control, data, and projection files, then copies those files along with gmacs.dat and gmacs.pin (if applicable).

copy_GMACSinputs(
  fromDir = NULL,
  toDir = NULL,
  GMACS_files = NULL,
  overwrite = NULL,
  verbose = TRUE,
  do_pinFile = TRUE
)

Arguments

fromDir

(path)- path to the directory where the input files to copy are stored.

toDir

(path)- path to the directory where to copy the files.

GMACS_files

(character string)- name of the GMACS input file(s) you want to copy. Options for GMACS_files are: 'gmacs.dat','gmacs.pin', the names of either the control, data, or projection files (with extention files, i.e.: .ctl, .dat, .prj). If GMACS_files="all", then the function will copy and paste all the input files cited above. from the base model directory to your current model in development.

overwrite

(logical) - Overwrite the input files if they already exist in the toDir repertory.

verbose

(logical)- flag to print processing information.

do_pinFile

(logical)- flag to indicate if the "gmacs.pin" has to be copied over if available in the path folder. Default, do_pinFile = TRUE.

Author

Matthieu Veron