Create a likelihood file object, from fresh or an existing file.

gadgetlikelihood(file_name, path, missingOkay = FALSE)

Arguments

file_name

The name of the likelihood file

path

The path to the gadget directory to read from

missingOkay

If TRUE, return an empty likelihood file object if file does not exist.

Value

A list of likelihood components representing file

Examples

path <- './cod-model'
# Read 'likelihood' likelihood file, creating it if it doesn't exist
gadgetlikelihood('likelihood', path, missingOkay = TRUE)  
#> ; Generated by Rgadget 0.5