Skip to content

R Data Science Library Package


R packages are modules that contain R functions and data sets. WarehousePG provides a collection of data science-related R libraries that can be used with the WarehousePG PL/R language.

This chapter contains the following information:

For information about the WarehousePG PL/R Language, see WarehousePG PL/R Language Extension.

Parent topic: Installing Optional Extensions (WarehousePG)

R Data Science Libraries

Libraries provided in the R Data Science package include:

abind

adabag

arm

assertthat

backports

BH

bitops

car

caret

caTools

cli

clipr

coda

colorspace

compHclust

crayon

curl

data.table

DBI

Deriv

dichromat

digest

doParallel

dplyr

e1071

ellipsis

fansi

fastICA

fBasics

fGarch

flashClust

foreach

forecast

foreign

fracdiff

gdata

generics

ggplot2

glmnet

glue

gower

gplots

gss

gtable

gtools

hms

hybridHclust

igraph

ipred

iterators

labeling

lattice

lava

lazyeval

lme4

lmtest

lubridate

magrittr

MASS

Matrix

MatrixModels

mcmc

MCMCpack

minqa

ModelMetrics

MTS

munsell

mvtnorm

neuralnet

nloptr

nnet

numDeriv

pbkrtest

pillar

pkgconfig

plogr

plyr

prodlim

purrr

quadprog

quantmod

quantreg

R2WinBUGS

R6

randomForest

RColorBrewer

Rcpp

RcppArmadillo

RcppEigen

readr

recipes

reshape2

rlang

RobustRankAggreg

ROCR

rpart

RPostgreSQL

sandwich

scales

SparseM

SQUAREM

stabledist

stringi

stringr

survival

tibble

tidyr

tidyselect

timeDate

timeSeries

tseries

TTR

urca

utf8

vctrs

viridisLite

withr

xts

zeallot

zoo

Installing the R Data Science Library Package

Before you install the R Data Science Library package, make sure that your WarehousePG is running, you have sourced greenplum_path.sh, and that the COORDINATOR_DATA_DIRECTORY and $GPHOME environment variables are set.

  1. Locate the R Data Science library package that you built or downloaded.

  2. Copy the package to the WarehousePG coordinator host.

  3. Install the package.

  4. Restart WarehousePG. You must re-source greenplum_path.sh before restarting your WarehousePG cluster:

    $ source /usr/local/greenplum-db/greenplum_path.sh
    $ gpstop -r

The WarehousePG R Data Science Modules are installed in the following directory:

$GPHOME/ext/DataScienceR/library

Note When you uninstall the R Data Science Library package from your WarehousePG cluster, any UDFs that you have created that use R libraries installed with this package will return an error.