Hi ( I hope this is the right place to post this; if not, please lmk!),
I am trying to deploy a Shiny app to RStudio Connect. Things go swimmingly until packrat tries to install a library that is required from my private Github repository and ends with the following error messages:
2017/10/14 13:47:29.838948025 FAILED
2017/10/14 13:47:29.849146344 Error in getSourceForPkgRecord(pkgRecord, srcDir(project), > availablePkgs, : Failed to download package from URL:
2017/10/14 13:47:29.849177811 - GITHUBAPI/repos/USERNAME/PACKAGENAME/tarball/HASH'
It points me to docs on private packages which did not really clarify the following three things for me. I'd appreciate any help with those!
I understand the docs to say that there is no way to get RStudio connect to directly upload the relevant files from my local drive as e.g. I think I am able to do on shinyapps.io. Is that true?
I understand the docs to say that there is no way for RStudio connect to download files from a private Github repository. That is, even if the file listed in the error messages was online, as long as it was in a private repository, I can't just add a token or similar to enable the system to access it?
The docs offer a few solutions, some of which (e.g. setting up a private repo) seem like an obvious overkill. Is there a best practice approach to get your own local library up on there? I feel it is common to clean up your main script by writing a library. How do you guys usually handle this?
(Locally, I just access the library by installing it from Github with a Token).
Thanks do much for your help!