I'm trying to publish a shiny app from RStudio Pro to RStudio Connect. The R code uses a SOURCE function to refer to another file with R code in it. That other R file requires a specific package (timeDate) for some of the code, and I have a library(timeDate) command at the beginning it.
I can run the shiny app fine from RStudio Pro, but I get the following error when trying to publish it:
*Using Packrat dir /opt/rstudio-connect/mnt/app/packrat/lib/x86_64-redhat-linux-gnu/3.5.1* *Error in value[[3L]](cond) : there is no package called ‘timeDate’*
Apparently it's trying to find the package in the wrong location? Is there a way I can specify the package location for this?