containerit icon indicating copy to clipboard operation
containerit copied to clipboard

Load prepared session on container startup

Open nuest opened this issue 7 years ago • 0 comments

It could be useful to extend the Dockerfile so that the captured session is fully replicated directly after container start. This would save the user to call require/library on those packages manually.

The only way to restore an interactive session with required libraries seems to be defining a Rprofile.site file and setting R_PROFILE environment variable to its location (using ENV instruction)

The R_PROFILE file must contain a .First - function which attaches required packages using require(...) (or library)?

load namespaces via requireNameSpace() --> create instruction CMD ["R"] at the end of the Dockerfile

nuest avatar Jan 18 '17 09:01 nuest