savemodel saves the results of training an emulator in a portable format. loadmodel loads a model from a file created this way and returns it as a fldgen object.

loadmodel(file, oldfmt = FALSE)

savemodel(modeldata, file, clobber = FALSE)

Arguments

file

Name of the file to write the data to.

oldfmt

Flag indicating that we should try to load the old (.rda) format from pre-2.1 versions of fldgen.

modeldata

A fldgen object returned by either train or fldgen_object.

clobber

Flag indicating whether it's ok to overwrite an existing file