Support building R-devel

Martin Maechler, a member of R core provides a daily tarball of R-devel
sources at https://stat.ethz.ch/R/daily. This provides support for
building based on this source if R_VERSION is set to 'devel'
This commit is contained in:
Jim Hester 2019-10-17 09:09:35 -04:00
commit 2494b8eb98

View file

@ -40,7 +40,12 @@ archive_r() {
fetch_r_source() {
echo "Downloading R-${1}"
wget -q "${CRAN}/src/base/R-`echo ${1}| awk 'BEGIN {FS="."} {print $1}'`/R-${1}.tar.gz" -O /tmp/R-${1}.tar.gz
if [ "${1}" = devel ]; then
# Download the daily tarball of R devel
wget -q https://stat.ethz.ch/R/daily/R-devel.tar.gz -O /tmp/R-devel.tar.gz
else
wget -q "${CRAN}/src/base/R-`echo ${1}| awk 'BEGIN {FS="."} {print $1}'`/R-${1}.tar.gz" -O /tmp/R-${1}.tar.gz
fi
echo "Extracting R-${1}"
tar xf /tmp/R-${1}.tar.gz -C /tmp
rm /tmp/R-${1}.tar.gz