write_aggfiles: Write aggfiles specific to certain Gadget components

Description Usage Arguments Value Examples

Description

These functions are specific to Gadget likelihood and printfile components as many of these aggfiles require particular attention to formatting. These functions are strictly used within write_gadget_file

Usage

1
2
3
4
5
write_likelihood_aggfiles(likelihood_file, path = NULL)

write_likelihood_datafiles(likelihood_file, path = NULL)

write_printfile_aggfiles(comp, path = NULL, aggfile_dir, fit_dir = NULL)

Arguments

path

Character. Path of the Gadget model

aggfile_dir

Character. Path of the directory where aggfiles will be printed

Value

NULL. Writes aggregate files to the appropriate files in aggfile_dir

Examples

1
2
3
4
5
6
7
8
path <- system.file(gad_mod_dir, package = "gadgetSim")
cod <- list(stocknames = "cod", printfile = "printfiles")
cod_stock <- update_printfile(stock, cod)
cod_stock_agg <- make_aggfiles(cod_stock, "print.aggfiles", path = path)
## Not run: 
write_aggfiles(cod_stock_agg, "print.aggfiles", path = path)

## End(Not run)

inspktrgadget/gadgetSim documentation built on May 10, 2019, 9:51 a.m.