Serializes the Julia object contained in an rjuliabugs object and saves
the entire object as an .rds file. The Julia object is saved separately
using Julia's Serialization.serialize. The file path can be passed manually,
or retrieved from the chains_file slot in the object.
Arguments
- rjuliabugs_model
An object of class
rjuliabugs, containing at least the fieldsname(Julia object name as a string) andchains_file.- file
A character string giving the base name or path for saving the
.rdsfile. If the extension.rdsis missing, it will be appended automatically.- chains_file
Optional character string giving the path where the Julia object should be serialized. The file name should have the
.jlsextension. IfNULL, uses thechains_filefield fromrjuliabugs_model.
