Possible to load Shiny UI elements from Github?

Viewed 36

Is it possible to create a "standard" top-level menu using navbarMenu, which can be stored in GitHub and then linked via UI in shiny apps?

Example: We have a standard menu that we want to use on multiple apps, instead of rewriting the same piece of code, is it possible to move some parts of the UI to GitHub to reuse? Such as the navbarMenu items given below:

navbarMenu(actionButton("A", "Report A")
                      ),
navbarMenu(actionButton("B", "Report B")
                      ),
navbarMenu(actionButton("C", "Report C")
                      )
1 Answers

Yes, you can. There are multiple options available. You can connect your application with Github and push and pull elements on the go. You can also use Github API: ("https://towardsdatascience.com/accessing-data-from-github-api-using-r-3633fb62cb08")

Related