Dockerfile不安装ggmap

当我试图通过docker集装箱运行一个项目时,出现错误。 图片失败,说ggmap没有安装,尽pipe它在Dockerfile中被调用。

这里是我的存储库的链接: https : //github.com/TedHaley/tree_value.git

这是我的dockerfile看起来像:

FROM rocker/tidyverse RUN Rscript -e "install.packages('devtools')" RUN Rscript -e "install.packages('ezknitr')" RUN Rscript -e "install.packages('lubridate')" RUN Rscript -e "install.packages('dplyr')" RUN Rscript -e "install.packages('readr')" RUN Rscript -e "install.packages('ggplot2')" RUN Rscript -e "install.packages('rgdal')" RUN Rscript -e "install.packages('broom')" RUN Rscript -e "install.packages('maptools')" RUN Rscript -e "install.packages('gpclib')" RUN Rscript -e "install.packages('packrat')" RUN Rscript -e "install.packages('MASS')" RUN Rscript -e "install.packages('scales')" RUN Rscript -e "install.packages('stringr')" RUN Rscript -e "install.packages('hexbin')" RUN Rscript -e "install.packages('reshape2')" RUN Rscript -e "install.packages('ggmap', repos = 'http://cran.us.r-project.org')" 

如果有人有任何想法,为什么ggmap不正确installedi这将是一个巨大的帮助。

您的图像基于rocker/tidyverse ,本身基于rocker/rstudio ,基于摇杆/基础。
他们都没有安装ggmap。

例如见achubaty/r-spatial-devel

 ## install R spatial packages && cleanup RUN xvfb-run -a install.r \ geoR \ ggmap \ 

尝试从可以testingggmap存在的映像开始。