Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Packrat

For RStudio the chosen way of storing packages with each project codebase is the use of a tool called 'packrat'. This tool allows all of the packages associated with a script or set of scripts to be saved within a project area. Some of the background and reasons for using packrat can be found here - https://rstudio.github.io/packrat/, but within DataLabs is allows us to keep all user content - both code, data & packages on the allocated data stores.Once packrat has been initialized,within the project volumes for persistence as well as reproducibility.

New Project

When creating a new project with RStudio, there is now a selection for "Use packrat for this project",  by selecting this RStudio will take care of initializing packrat in the project directory, as well as ensuring that any further packages installed in that area will be kept locally with the code itself.

...