Stanfit object fit inside function explodes in size when saved to .rds

I noticed this post a little while ago for a tool which trims unnecessary bits from a stanfit object. Does it help with your problem?