From 4f21bb14c2c0afb309404957e72b3504d4b18a1a Mon Sep 17 00:00:00 2001 From: dickmao Date: Thu, 9 Jan 2020 16:46:08 -0500 Subject: [PATCH] fix install-R.sh --- tools/install-R.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/install-R.sh b/tools/install-R.sh index 1be9521..1a6ec86 100644 --- a/tools/install-R.sh +++ b/tools/install-R.sh @@ -19,6 +19,7 @@ if [ "x$UNAME" = "xLinux" ] ; then elif [ "x$UNAME" = "xDarwin" ]; then brew list r &>/dev/null || HOMEBREW_NO_AUTO_UPDATE=1 brew install r fi -R -l ${WORKDIR}/R -e "install.packages('IRkernel', repos='http://cran.mirrors.hoobly.com', lib='${WORKDIR}/R')" -R -l ${WORKDIR}/R -e "IRkernel::installspec()" +echo ".libPaths( c( '${WORKDIR}/R' , .libPaths() ) )" > ${HOME}/.Rprofile +R -e "install.packages('IRkernel', repos='http://cran.mirrors.hoobly.com', lib='${WORKDIR}/R')" +R -e "IRkernel::installspec()" R --version