-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support R older than 1.3.1 #14
Comments
For the time being: utils::compareVersion(granlist$r_version, "3.1") == -1 Stop utils::compareVersion(granlist$r_version, "2.5") == -1 Stop |
All the functions in snake case: R 1.9.0 All other functions should be safe. Maybe minimum version of R 1.8.0 should be declared as the tryCatch block is needed. Also, state somehwhere that the generated installation script might not look idiomatic now. |
However, if #17 is implemented, it is safe to go older than R 1.8.0. |
|
It is safer to say the current For older versions, shell script approach should be used. This can be cited: https://www.r-project.org/doc/Rnews/Rnews_2005-1.pdf Ripley, B. (2005) Packages and their Management in R 2.1.0. R News |
Debian Etch / Lenny can be used to compile R 2.1 to R 3.0. |
Proposed Dockerfile for R < 3.1.0.
FROM debian/eol:lenny
ENV TZ UTC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && apt-get update -qq && apt-get install wget locales build-essential r-base-dev -y
RUN wget http://cran.r-project.org/src/base/R-2/R-2.13.0.tar.gz \
&& tar -zxf R-2.13.0.tar.gz \
&& cd R-2.13.0 \
&& ./configure --without-x ; make \
&& make install
COPY gran.R ./gran.R
RUN Rscript gran.R
CMD ["R"]
|
ah dar... #17 |
TODOs
|
lenny = 1.8.0 Update: actually 1.6.0 / 1.5.0 / 1.4.0 / 1.3.1 work; only 1.7.x series doesn't work. There should be an option like "skip_r1.7 = TRUE" Will use 1.3.1 as the reference version to write header and footer |
etch doesn't have libcurl4-openssl-dev, should drop. |
R 1.3.1 doesn't even have |
The issue is for supporting 1.3.0 or below is the compilation fails on Lenny. |
There were changes but R older than 2.5 were really different, e.g. no
seq_along
; versions older than 1.9 can't even use snake case.A even safer approach is to use bash to
wget
andR CMD INSTALL
instead. I can only install source package in R 1.3.1 this way.The text was updated successfully, but these errors were encountered: