Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save R6 object #254

Open
MathieuDepetris opened this issue Mar 24, 2022 · 2 comments
Open

Save R6 object #254

MathieuDepetris opened this issue Mar 24, 2022 · 2 comments

Comments

@MathieuDepetris
Copy link

Hi all,
I am developing an R package called t3 (https://github.com/OB7-IRD/t3/tree/development) using R6 classes. So far everything works fine but I have some troubles when I tried to save a R6 object after data manipulation and application of several methods. Saving and loading time is very long, even if at the end the output file generated is approximately 100mo. I tried to investigate that and make some kind of profiling and used different saving methods, but I find some post on the internet that makes me wonder is the problem came from me (for example here Serializing R6 classes? · Issue #157 · r-lib/R6 (github.com)).
Do there any specifications related to the saving process of R6 object under R ?
Thank for help.

@d-sharpe
Copy link

d-sharpe commented Jul 7, 2022

@MathieuDepetris I've encountered a similar problem before, specifically an dramatic increase in memory consumption on load. I ended up putting pickleR together to solve my issue. Not sure if it will sort your issue. Should be noted that it currently does not support the 'pickling' of S4 objects if you have any.

@MathieuDepetris
Copy link
Author

@d-sharpe, thank you very much for your advice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants