By default, Domino runs each of your scripts (or interactive sessions) from a fresh environment. This means that packages are installed to your environment every time you start an execution. If you want your changes to remain permanently installed with increased execution times, see Use Dockerfile Instructions to create custom environments.
If you’re using Domino for R scripts, you might want to see the R Package to control Domino in your R IDE.
Most common packages are installed by default.
You can include
installed.packages() at the start of your script to print out a list of installed packages.
If you need additional packages, you can use R’s built-in package manager to install and load them.
To do this, add
install.packages calls to the top of your R scripts for packages that your code needs. For example:
install.packages("rpart", dependencies=TRUE, repos='http://cran.us.r-project.org') # install other packages... library('rpart') # rest of your script...
These package installation calls must be at the top of every R script that Domino runs. If your packages take a long time to install Domino recommends that you create a custom compute environment for efficiency.