Write a new gmacs.dat file. This function is used to modify within R a pre-existent gmacs.dat file.

writeGmacs.dat(
  Dir = NULL,
  FileName = NULL,
  gmacsDat = NULL,
  stock = "",
  model_name = "",
  Ass_Year = "",
  DirTPL = NULL,
  Ver_number = NULL
)

Arguments

Dir

(character string)- directory where to save the new gmacs.dat file.

FileName

(character string)- name of the new gmacs.dat file.

gmacsDat

(character string)- Object (list) containing the ex gmacs.dat file - The list is created using the readGMACS_dat() function.

stock

(character string)- name of the stock of interest.

model_name

(character string)- name of the model currently considered (e.g., "model 22.A").

Ass_Year

(character string)- Year of this assessment.

DirTPL

(character string)- the directory where the gmacsbase.TPL file you are using for the stock assessment is hold.

Ver_number

(character)- The version of Gmacs. This is used only when developing new code versions of Gmacs.

Value

create a new gmacs.dat file.

See also