R code for the Gmacs stock assessment framework