As of R 3.6.0, Bioconductor packages need to be installed using BiocManager::install().
RStudio-connect/packrat cannot seem to handle this. The workaround I've been given is to:
manually install any needed Bioc packages on the RStudio-connect server
manually add these to the [Packages] section as External = <package>.
This is a major headache, especially as compared to the way that deploying to the server worked previously. Rather than my users effortlessly publishing their code, they will need to figure out the new Bioconductor packages that need special treatment, then contact me to provide this.
Has anyone found a better way? Is RStudio addressing this problem?
Thanks for raising this to us! @iain's approach definitely works, but we would expect packrat / Connect to be able to handle this case as well. I will raise with developers so that we can address the issue!
Any chance you can help out with a reprex here? Do you have a packrat.lock file that fails to restore and the output that it gives? rsconnect generates the lockfile with something like packrat::.snapshotImpl(".", snapshot.sources = FALSE), if that's helpful.