From 6bd5e6342687d09e28f375906f5697103756702e Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Wed, 25 Jan 2017 15:04:47 +0100 Subject: [PATCH] library/roles/R/templates/update_r_packages.sh.j2: Fix the R updater script, it does not parses the repository URL correctly. --- R/templates/update_r_packages.sh.j2 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/R/templates/update_r_packages.sh.j2 b/R/templates/update_r_packages.sh.j2 index c01efbb..1bc3d2d 100644 --- a/R/templates/update_r_packages.sh.j2 +++ b/R/templates/update_r_packages.sh.j2 @@ -153,7 +153,7 @@ function r_cran_pkgs() { is_mirror=$( echo $l | grep ':' ) is_mirror_ret=$? if [ $is_mirror_ret -eq 0 ] ; then - mirror=$( echo $l | cut -d : -f 2 ) + mirror=$( echo $l | cut -d : -f 2- ) else mirror=$R_CRAN_MIRROR fi @@ -173,7 +173,6 @@ function r_github_pkgs() { logger "update_r_packages: Installing R packages from Github" for l in $( cat $R_PKGS_GITHUB ) ; do pkg=$( echo $l | cut -d "/" -f 2 ) - user=$( echo $l | cut -d "/" -f 1 ) if [ "$ACTION" == "upgrade" ] ; then Rscript --slave --no-save --no-restore-history -e "require(devtools); require(methods); install_github('$l');" else