R causing the docker build to fail (Not ShinyProxy related)

I’m not able to get my Docker image to build. I created a package EdaWeb_0.1.tar.gz that follows the same directory structure of the shinyproxy-demo. Here is the error I get when I try to build the Docker file. All my R files are in the R directory of the project, just like the shinyproxy-demo app.

Step 6 : RUN R CMD INSTALL /root/EdaWeb_0.1.tar.gz
—> Running in 5e4344018376
e[91m* installing to library ‘/usr/local/lib/R/site-library’
e[0me[91m* installing source package ‘EdaWeb’ …
e[0me[91m** R
e[0me[91m** preparing package for lazy loading
e[0me[91mWarning in file(filename, “r”, encoding = encoding) :
e[0me[91m cannot open file ‘MessageHelperFunctions.R’: No such file or directory
e[0me[91mError in file(filename, “r”, encoding = encoding) :
cannot open the connection
e[0me[91mError : unable to load R code in package ‘EdaWeb’
e[0me[91mERROR: lazy loading failed for package ‘EdaWeb’
e[0me[91m* removing ‘/usr/local/lib/R/site-library/EdaWeb’
e[0mRemoving intermediate container 5e4344018376
The command ‘/bin/sh -c R CMD INSTALL /root/EdaWeb_0.1.tar.gz’ returned a non-zero code: 1

All of my files are in the EdaWeb/R folder, but the Docker installation script is not looking there for the R files.

Hi @john_ryan_zelling,

From what I can see, this has nothing to do with ShinyProxy per se.

The installation of the package fails, since the code can not be loaded properly. Probably this is related to the fact that inside your .R files you are trying to read (or to source(.)) other files (maybe inside your app.R ?), which is not typically done inside R package code.