Objects of class runjags
are pretty big, mostly because they store all the information (model/data/RNG states) required to continue a simulation where they left off. If all you want is the MCMC chains then you can get rid of most of this using:
as.mcmc.list(yourrunjagsobject)
...or to convert to something you can use with the rjags package directly:
as.jags(yourrunjagsobject)
See also ?runjagsclass
Or, if you have print/summary related storage problems and want to retain the model/data/RNG state, try summarise=FALSE
and plot=FALSE
to run.jags()
, which will prevent pre-generation/storage of these during the initial function call.
You could also hack the class object to get rid of big components I guess, but much better to use the conversion methods provided...