Closed sfahad1414 closed 5 years ago
Please provide more information as to what image you have used and how you have attempted to install the package. Also note that httr
is already pre-installed on the tidyverse
images; e.g.:
docker run --rm -ti rocker/tidyverse R
library(httr)
runs without error.
image ->rocker/verse: latest
code to install packages
RUN Rscript -e "install.packages('lime', dependencies = TRUE)"
RUN Rscript -e "install.packages('plumber', dependencies = TRUE)"
RUN Rscript -e "install.packages('rjson', dependencies = TRUE)"
RUN Rscript -e "install.packages('doParallel', dependencies = TRUE)"
RUN Rscript -e "install.packages('iterators', dependencies = TRUE)"
RUN Rscript -e "install.packages('data.table', dependencies = TRUE)"
RUN Rscript -e "install.packages('dplyr', dependencies = TRUE)"
RUN apt-get update && apt-get -y install r-cran-httr
Regards, Fahad Shaikh.
On Fri, Jan 4, 2019 at 10:47 PM Carl Boettiger notifications@github.com wrote:
Please provide more information as to what image you have used and how you have attempted to install the package. Also note that httr is already pre-installed on the tidyverse images; e.g.:
docker run --rm -ti rocker/tidyverse R library(httr)
runs without error.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rocker-org/rocker-versioned/issues/115#issuecomment-451507944, or mute the thread https://github.com/notifications/unsubscribe-auth/AJsVzgZqB5je9IOD5XGd2PoQuc9KZALqks5u_4ymgaJpZM4ZpyDW .
-- Thanks & Regards Fahad Ali Shaikh Digite Infotech Pvt. Ltd. Mob: 9768356005
@sfahad1414 Thanks for providing these details. Why are you trying to install httr
over apt-get instead of the way you have used for all the other packages? We don't recommend installing R packages by apt-get on the versioned stack, see README. https://github.com/rocker-org/rocker-versioned#notes . If you use install.packages()
I think you will find it works as expected.
Also note that httr
(and also dplyr
) are already installed on the image you are starting with, so need to install them again.
Even after installing the httr getting following error Error in library(httr) : there is no package called ‘httr’ Calls: plumb ... -> source -> withVisible -> eval -> eval -> library