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

Log sessionInfo too if dump.errors.to.file = TRUE to allow manual loading of required packages #16

Open
aryoda opened this issue Jan 22, 2017 · 0 comments

Comments

@aryoda
Copy link
Owner

aryoda commented Jan 22, 2017

R dump files (created with save.image) do not contain the packages loaded when the dump file was created and a dump loaded into memory does not use exactly the same search path to find objects during post-mortem debugging.

This means:

  1. the program state is not exactly reproducible if objects are stored within a package namespace
  2. you cannot step through your source code in a reproducible way after loading the image if your source code calls functions of non-default packages

To allow at least restoring the search path manually before debugging by loading the packages in the correct order the sessionInfo() must be written to the log too.

See also:

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

No branches or pull requests

1 participant