-
Notifications
You must be signed in to change notification settings - Fork 286
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
Overwriting an imported file will segfault (or garble the file) #1273
Comments
(For solution/work-around see further down this comment under the section "Solution".) Not sure this is related, but when I try to write to an previously imported file, I get the following error:
This happens when I use The stack trace is
What is interesting, is, that at the very moment, the file is open by and only by the very rsession.exe. So it seems to have to do with lazy loading! When using SolutionWhen I use
then the error does not happen. So it would be good to have that as a warning in the documentation, that one needs to disable lazy loading if one intends to update/overwrite the file later. Info
|
On a further note: Since the default for Since We had repeating issues with this but only now I realize that they relate to this lazy loading! While I do understand the choice for the default to load lazily, I would not assume that this is whats happening. I would strongly suggest to re-evaluate this decision and appeal to switch to non-lazy loading by default. There could be an option to introduce an alternative verb, e.g. Another option would to show a warning message when using the default setting |
Hi @jimhester Thanks for updating the documentation. I have not seen that in the documentation before - apparently it was already there. The problem is that you find the error while writing, not while reading the file. And you cannot always read the entire documentation to find such an important side-effect. My suggestion would be to either
Would you accept a PR for implementing the warning message? |
Agree with the above, it's a major side-effect that arguably breaks the drop-in quality of the |
The following will crash on my computer (or mess up the file)
sessionInfo()
The text was updated successfully, but these errors were encountered: