I'm running into issues with deploying my app to my server. Sometimes it works, and sometimes it fails. This problem began 4 days ago.
The current issue appears to be a problem with a package I am installing from GitHub. However, I am able to install the package locally, and also successfully able to install it remotely on the server that I have Posit Connect installed on.
This is the line of code that is currently causing the failure (only when publishing the app to the server through RStudio, not when installing the package locally or on the server).
devtools::install_github("melissagwolf/semPlot", ref = "packrat_errors")
Here is the log:
2023/11/07 23:54:57.552557707 Installing semPlot (1.1.5) ...
2023/11/07 23:54:58.420587406 FAILED
2023/11/07 23:54:58.421036499 Error in getSourceForPkgRecord(pkgRecord, srcDir(project), availablePackagesSource(repos = repos), : Failed to download package from URL:
2023/11/07 23:54:58.421073936 - 'https://api.github.com/repos/melissagwolf/semPlot/tarball/6041366e37fc6f4509e17d09541ac69159c32238'
2023/11/07 23:54:58.421176413
2023/11/07 23:54:58.421179689 Unable to fully restore the R packages associated with this deployment.
2023/11/07 23:54:58.421193316 Please review the preceding messages to determine which package
2023/11/07 23:54:58.421195940 encountered installation difficulty and the cause of the failure.
However, I was able to successfully publish this exact same shiny app last night, although it took approximately 15 hours to successfully load. What could the problem be? How can I resolve this?