Sharing applications using Git

We need to consult the websites mentioned earlier for more details of each of these steps. Once you've set your Git version control and paired with an online repository at GitHub, you can very easily share your creations with anyone running the R and Shiny package using the runGitHub() command, which takes the name of the repository and the username as mandatory arguments:

runGitHub("GoogleAnalytics2ndEdition", "ChrisBeeley")

Code and data are both automatically downloaded and run. If you are using RStudio and want to launch your own external browser, as opposed to using the one that is built-in, you need to add launch.browser = TRUE. If you don't want or need version control, and don't need data to be included in the download, a simpler option is to use Gist, which is also hosted at GitHub at gist.github.com. Using Gist is simply a matter of visiting the URL, setting up an account, pasting your code into it, and giving the server.R and ui.R files the correct filenames. You will then have a URL, using which you can show your code to others. Running this code from the Shiny package is just a matter of using runGist() with the URL or even using the unique numeric identifier from the URL.

library(shiny):

runGist("https://gist.github.com/ChrisBeeley/a2f1d88dfedcd2e1cb59")  
runGist("a2f1d88dfedcd2e1cb59")  
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset