Run shiny app from Github repository

Hi all,

I am trying to call my R-Shiny app from my Github repository using the following command in R:
- shiny::runGitHub('KaranHub', 'KaranKakouei')

However, I do get the following error:
- Downloading
Error in utils::download.file(url, method = method, ...) :
can not open URL ''

It works when I open Shiny examples of other users (e.g., "shiny::runGitHub('shiny_example', 'rstudio')")

Is there any extra step that needs to be accomplished to make it work? I would be more than happy if you could help me solve this issue. Thanks!

Kind regards

1 Like

Hi, by default the runGithub function is looking for the code on the master branch,
it seems that you have a custom branch called main, therefore you need to specify that in the function arguments ref="main".
Also, we need to pass the repo name first (or specify the names of the variables in arguments).
So, the final function call should be:
runGitHub('KaranHub','KaranKakouei', ref="main")
Good luck.

1 Like

Oh that's right. Thank you so much for your response!

1 Like

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.