我只与ShinyProxy合作了一段时间,在设置新应用程序时遇到了问题。
此应用需要运行sunburstR软件包,但是在设置Dockerfile,构建映像并重新启动ShinyProxy之后,我收到错误消息“错误:没有名为sunburstR的软件包”。
也许您可以在Dockerfile中发现错误,或者知道其他尝试方法?
我已经尝试过的:
码头工人图像:
FROM openanalytics/r-base
# system libraries of general use
RUN apt-get update && apt-get install -y \
sudo \
pandoc \
pandoc-citeproc \
libcurl4-gnutls-dev \
libcairo2-dev \
libxt-dev \
libssl-dev \
libssh2-1-dev \
libssl1.0.0 \
libxml2-dev \
libmysqlclient-dev \
r-cran-rodbc \
haskell-platform
RUN apt-get update && apt-get install -y \
libmpfr-dev
# basic shiny functionality
RUN R -e "install.packages(c('flexdashboard', 'shiny','htmlwidgets','htmltools', 'ggplot2', 'dplyr','rvest','xml2', 'knitr', 'kableExtra', 'tidyr', 'stringr', 'plotly','d3r','sunburstR'), repos='https://cloud.r-project.org/')"
# copy the config scripts for git
COPY Rprofile.site /usr/lib/R/etc/
COPY pandoc-2.7.2-1-amd64.deb ./pandoc-2.7.2-1-amd64.deb
# get git
RUN dpkg -i pandoc-2.7.2-1-amd64.deb
EXPOSE 3838
CMD R -e "rmarkdown::run('/shiny_app_highlevel/index.Rmd')"
安装似乎可行: