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

data_diff objects fail on round trip to Rdata files #23

Open
statisfactions opened this issue Sep 14, 2017 · 1 comment
Open

data_diff objects fail on round trip to Rdata files #23

statisfactions opened this issue Sep 14, 2017 · 1 comment

Comments

@statisfactions
Copy link

statisfactions commented Sep 14, 2017

I found the following behavior surprising:

library(daff)
example(diff_data)  # creates the "dd" patch

save(dd, file = "patch_loading.Rdata")
load("patch_loading.Rdata")

dd
## Error in context_eval(join(src), private$context) : 
##  Context has been disposed.

Almost all R objects can be safely written to Rdata or RDS files. Is this failure expected behavior?

If this is intended, I can contribute a documentation patch to diff_data and write_diff so people at least know to expect this -- it caught me off guard since R objects are usually self-contained and Rdata/RDS files are a big part of my workflow.

@edwindj
Copy link
Owner

edwindj commented Sep 22, 2017

Thanks for reporting!
It should definitely be in the documentation: I will try to fix it, but I'm not sure if it is possible without some major work.

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