![]() To use GitHub, you’ll need to sign up (it’s free) and choose a user name. GitHub provides many features to support collaboration, such as issue trackers, wikis, and close integration with the git version control system. If you don’t have your own web page to host the files at, you can host your the files for free at GitHub is a popular project hosting site for R developers since it does more than just host files. Library ( shiny ) runUrl ( "" ) runGitHub ![]() Anyone with access to the link can launch the app from inside R by running: Host that zip file at its own link on a web page.Save your Shiny app’s directory as a zip file.RunUrl will download and launch a Shiny app straight from a weblink. ![]() Shiny has three built in commands that make it easy to use files that are hosted online: runUrl, runGitHub, and runGist. # install.packages("shiny") library ( shiny ) runApp ( "census-app" ) They can launch the app in R with the same commands you used on your computer. ![]() Your user can place the files into an app directory in their working directory. They will need a copy of your app.R file, as well as any supplementary materials used in your app (e.g., To send your files to another user, email the files (perhaps in a zip file) or host the files online. They will find your app fully rendered, up to date, and ready to go.Īnyone with R can run your Shiny app. Your users can navigate to your app through the internet with a web browser. This is definitely the most user friendly way to share a Shiny app. Users can use these scripts to launch the app from their own R session, just like you’ve been launching the apps so far in this tutorial. This is the simplest way to share an app, but it works only if your users have R on their own computer (and know how to use it). When it comes to sharing Shiny apps, you have two basic options: You can now build a useful Shiny app, but can you share it with others? This lesson will show you several ways to share your Shiny apps.
0 Comments
Leave a Reply. |