i'm unable to install r version 4.1.0 in the image (rstudio/content-base:r4.1.3-py3.10.11-jammy)

i'm unable to install the r version 4.1.0
step:1 sudo sed -i.bak "/^#.*deb-src.*universe$/s/^# //g" /etc/apt/sources.list sudo apt update sudo apt build-dep r-base

step:2 export R_VERSION=4.2.3

step:3 curl -O https://cran.rstudio.com/src/base/R-4/R-${R_VERSION}.tar.gz
tar -xzvf R-{R_VERSION}.tar.gz cd R-{R_VERSION}

step:4
./configure
--prefix=/opt/R/${R_VERSION}
--enable-R-shlib
--enable-memory-profiling
--with-blas
--with-lapack
make
sudo make install

step:5 /opt/R/${R_VERSION}/bin/R --version

i'm getting error at configure step can anyone guide me please

First, which version of R are you actually trying to install? The question says 4.1.0 but your step 3 appears to be downloading 4.2.3. Second, are you trying to revert to an older version of R, or do you want to install the current version? You appear to be running Ubuntu (or Mint?) based on the "jammy". R 4.3.3 is available from the Canonical repos.

Hi Prubin,

thanks for reaching.
firstly i want to install the 4.10 r version on (rstudio/content-base:r4.1.3-py3.10.11-jammy))
but while i'm facing issue with ./configure step 4 and step 1 apt build-dep r-base .
these steps i'm failing can you suggest and help me for resolving this issue please. i'm using linux machine only for building the image

base image :rstudio/content-base:r4.1.3-py3.10.11-jammy)

Is this a Docker image? If so, then doesn't it come with R 4.1.3? If you want 4.1.0, why not install the Docker image for that?

as per application need we need to install 4.1.0 r version on top of base image rstudio/content-base:r4.1.3-py3.10.11-jammy)

If you change 4.2.3 to 4.1.0 in step 2 does it work? If not, I'm afraid I can't help.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.