concourse/scripts/install_r_package.R

#!/usr/bin/env Rscript
# called with package name as arg[1]
# and destination as arg[2]
args = commandArgs(trailingOnly=TRUE)
cran = getOption("repos") 
cran["CRAN"] = "https://cran.csie.ntu.edu.tw/"
options(repos = cran)
rm (cran)
install.packages(args[1])
greenplum-db/GreenplumR documentation built on Sept. 2, 2023, 8:09 a.m.