containerit
containerit copied to clipboard
Load prepared session on container startup
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