looking at the source code of shiny::runGithub, it seems it does not allow private repo download. Confirmed by this issue.
However, runGithub does this step:
- Create the url for github.com then call
runURL
-
runUrl download the files for the repo in a temp directory (or destdir) then call runApp. runURL use utils::download.file (devtools::install_github uses httr
)
-
runApp launch the shinyapps form the downloaded app folder.
you can easily create your own wrapper replacing the first to step using for example gh
or directly httr
to download the bundle from github using private PAT as authentification.