Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 11 Current »

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:

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