
Save an rjuliabugs
Object and Its Julia State
save_rjuliabugs.Rd
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
.rds
file. If the extension.rds
is 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
.jls
extension. IfNULL
, uses thechains_file
field fromrjuliabugs_model
.