I am trying to build this on a docker image and it used to work a couple of months ago but now it fails with I try installing R devtools
FROM python:3.8
RUN apt update
RUN apt install jq nodejs npm node-gyp dirmngr gnupg apt-transport-https ca-certificates software-properties-common cpio -y
RUN apt install r-base libfontconfig1-dev -y
RUN apt install build-essential -y
ENV LIBARROW_MINIMAL=false
RUN which R
RUN R -q -e 'if(!require(devtools)) install.packages("devtools", repos = "http://cran.us.r-project.org")'
Errors:
ERROR: dependency ‘pkgdown’ is not available for package ‘devtools’
* removing ‘/usr/local/lib/R/site-library/devtools’
The downloaded source packages are in
‘/tmp/RtmpvUFgBH/downloaded_packages’
Warning messages:
1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called ‘devtools’
2: In install.packages("devtools", repos = "http://cran.us.r-project.org") :
installation of package ‘textshaping’ had non-zero exit status
3: In install.packages("devtools", repos = "http://cran.us.r-project.org") :
installation of package ‘ragg’ had non-zero exit status
4: In install.packages("devtools", repos = "http://cran.us.r-project.org") :
installation of package ‘pkgdown’ had non-zero exit status
5: In install.packages("devtools", repos = "http://cran.us.r-project.org") :
installation of package ‘devtools’ had non-zero exit status
Is there a way to fix these or to install these packages without compiling them?