I’ve got a webapp that uses a locally stored xlsx template with XLConnect to produce formatted excel reports. When run locally via rstudio or VSCode this works. XLConnect loads the template workbook, writes data, outputs a downloadable file.
In Shinyproxy for some reason this isn’t working. I’ve verified the xlsx file is in the proper directory and i’ve tried every potential absolute and relative filepath for loadWorkbook() without success.
Is it possible I’m running into a permissions issue or something that could prevent XLConnect from working with the file? There shouldn’t be any missing dependencies, it’s a cross platform package and I’ve got java.
FROM r-base
# system and R libraries
RUN apt-get update && apt-get install -y gdal-bin git-core libcairo2-dev libcurl4-openssl-dev libgdal-dev libgeos-dev libgeos++-dev libgit2-dev libssh2-1-dev libssl-dev libudunits2-dev libxml2-dev make pandoc pandoc-citeproc unixodbc-dev zlib1g-dev default-jdk r-cran-rjava && rm -rf /var/lib/apt/lists/*
# R packages
RUN R -e "install.packages(c('shiny','tidyverse','rJava','ggplot2','tidyr','purrr','stringr','readr','forcats','tibble','glue','httr','jsonlite','dplyr','glue','data.table','lubridate','magrittr','treemapify','ggfittext','shinydashboard','shinydashboardPlus','DT','shinyWidgets','XLConnect','formattable','RSQLite','DBI','odbc','pool','dbplyr','here','readwritesqlite','sf'), repos='https://cloud.r-project.org/', dependencies=TRUE)"
# copy the app to the image
RUN mkdir /root/my_app
RUN mkdir /root/my_app/data
COPY my_app /root/my_app
COPY my_app/mytemplate.xlsx /root/my_app
COPY Rprofile.site /usr/lib/R/etc/
EXPOSE 3838
CMD ["R", "-e", "shiny::runApp('/root/my_app',host='0.0.0.0', port=3838)"]