/
Use external R packages

Use external R packages

Package installation is persistent, but you cannot know in advance which node of the cluster will launch your job.

Thus don't assume packages are already installed:

options(repos = "https://cloud.r-project.org")
pkgs <- c("data.table", "dplyr", "ggplot2")
for (pkg in pkgs) if (!length(find.package(pkg, quiet = TRUE))) install.packages(pkg)
for (pkg in pkgs) library(pkg, character.only = TRUE)

Related content

Update R packages
Update R packages
More like this
R - Using R with a proxy
R - Using R with a proxy
More like this
Your Shiny app on Saagie
Your Shiny app on Saagie
More like this
R - Using H2O
More like this
R - Read & Write files from MongoDB
R - Read & Write files from MongoDB
More like this
R - Upload H2O library to HDFS
R - Upload H2O library to HDFS
More like this