diff --git a/R/templates/update_r_packages.sh.j2 b/R/templates/update_r_packages.sh.j2 index c01efbb4..1bc3d2de 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