Read the gmacs.dat file.
readGMACS.dat(path = NULL, verbose = TRUE)path to the gmacs.dat file
(TRUE/FALSE); flag to print processing information
A list with the content of the gmacs.dat file.
DatFileName - The name of the data input file (e.g., model.dat).
CtlFileName - The name of the control input file (e.g., model.ctl).
PrjFileName - The name of the projection input file (e.g., model.prj).
Weight_Unit - The unit use for the weight data.
Number_Unit - The unit use for the numbers data.
Stock_name - The name of the stock considered.
Jitter - The jitter configuration (Yes/No).
sd_Jitter - The sd used in the jitter (if applicable).
OutVar_BRPs - Output variance for the Biological Reference Points.
OutVar_Recr - Output variance for the recruitment.
OutVar_SSB - Output variance for the Spawning Stock Biomass.
OutVar_Fbar -   Output variance for the mean fishing mortality.
OutVar_DynB0 - Output variance for the dynamic B0 approach.
N_Year_Retro - The number of year for the retrospective analysis.
TurnOffPhase - The maximum number of phase(s) (i.e., stop the estimation after this phase)
StopAfterFnCall - The number of function call.
CalcRefPoints - Specify if the reference points are computed during the run.
UsePinFile - Use the .pin file to specify (initial) values for parameters.
Verbose - Verbose flag.
eof - Logical indicating the end of the file (used for checking the reading).
if (FALSE) {
# Stock ----
stock <- "SNOW_crab"
# read gmacs.dat ----
fileName <- "gmacs.dat"
fileName <- file.path(dir_Base, stock, fileName, fsep = fsep)
GMACSdat <- readGMACS.dat(path = fileName, verbose = TRUE)
}