Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Data Science Portfolios with shinyapps.io

kellobri
February 04, 2019

Data Science Portfolios with shinyapps.io

Learning shiny is great, but only if you also learn how to get it off your own computer.

kellobri

February 04, 2019
Tweet

More Decks by kellobri

Other Decks in Technology

Transcript

  1. Learning Shiny is great, but only if you also learn

    how to get it off your own computer.
  2. Share your Shiny Applications Online Uses: - PoC (proof of

    concept) design - Prototype builds - Short-lived personal applications - Core analytical offerings How I’ve used shinyapps.io: - Graduate School Data Science Portfolio - “Take Home” Interview Projects
  3. Get Started Before you get started with shinyapps.io, you will

    need: • An R development environment, such as the RStudio IDE • The rsconnect R package from CRAN To install rsconnect on your local R process, you can run the following command: install.packages('rsconnect') After the installation completes, you can load the library in your session with the following command: library(rsconnect)
  4. Create an Account Go to shinyapps.io and click “Log In”.

    The site will give you several options for signing in. If you have a Google account or a GitHub account, you can use either one of those methods to authenticate.
  5. Connect to your Account Once you have set up your

    account in shinyapps.io, you can configure the rsconnect package to use that account.
  6. Publish an Application 1. Click Publish on the App 2.

    Select an Account 3. Click Publish in the dialog box
  7. Deployed Applications Applications deployed on shinyapps.io are accessible by loading

    a URL of the form: https://<account-name>.shinyapps.io/<application-name>/
  8. Embedding Applications Every application you deploy will have a unique

    URL, served over a secure socket (SSL) connection and accessible from a web browser. You can embed your application within other pages by using an iframe. <iframe id="example1" src="https://<accountname>.shinyapps.io/<applicationame>" style="border: non; width: 100%; height: 500px" frameborder="0"> </iframe>
  9. Great - But where do you embed things? Challenge Project:

    - Create an R Markdown Website - Embed Shiny Applications - Host the site with GitHub Pages Click here for Tutorial Help Click here to See an Example Click here to Get the Code