Ramanth Addala a0bfc3c1f2
replacing caTools dependency with base64enc (#6349)
* replacing caTools dependency with base64enc

* adding review fixes

* fix(r) : updated the cran repo url
2020-05-20 21:19:13 +08:00

23 lines
668 B
Bash

#!/bin/bash
set -e
REPO=https://cloud.r-project.org
export R_LIBS_USER=$HOME/R
echo "R lib directory: $R_LIBS_USER"
mkdir $R_LIBS_USER || true
Rscript -e "install.packages('jsonlite', repos='$REPO', lib='$R_LIBS_USER')"
Rscript -e "install.packages('httr', repos='$REPO', lib='$R_LIBS_USER')"
Rscript -e "install.packages('testthat', repos='$REPO', lib='$R_LIBS_USER')"
Rscript -e "install.packages('R6', repos='$REPO', lib='$R_LIBS_USER')"
Rscript -e "install.packages('base64enc', repos='$REPO', lib='$R_LIBS_USER')"
Rscript -e "install.packages('rlang', repos='$REPO', lib='$R_LIBS_USER')"
R CMD build .
R CMD check *tar.gz --no-manual
R CMD INSTALL *tar.gz