R Shiny at IQSS
  • Introduction
  • Getting started
    • Determining your resource requirements
    • Applying for an account
  • Deploying
    • Setup your environment
    • Deploying an example Shiny app
    • Bootstrapping a new Shiny app or migrating a pre-existing Shiny application
    • Developing locally with RStudio
    • Developing locally using Docker
    • Speeding up deployments with Packrat
  • Configuration
    • Setting up a custom domain for your Shiny app
    • Installing additional system-level packages
    • Limiting the number of R Threads
  • Best Practices
    • File storage
    • Using promises
    • Adding routes
  • Troubleshooting
    • Resolving Application Error screen
    • Viewing app logs
    • Viewing resource consumption
    • Configuring Shiny session auto-reconnect
    • Getting support
Powered by GitBook
On this page
  • Install Git
  • Ensure a compatible version of R is installed.
  • Install Docker
  • Install Heroku
  1. Deploying

Setup your environment

PreviousDeployingNextDeploying an example Shiny app

Last updated 5 years ago

Install Git

There are multiple Git clients available. Install one or install many. Listed below are some of our top picks.

If you're using Linux, install Git through your distribution's package manager. For example, apt-get -y install git or yum -y install git.

Read for more information.

Note that all the examples in this tutorial will be using Git on the command line. You will use command.exe or powershell (your choice) in Windows, Terminal in OS X, or any terminal emulator in Linux.

Ensure a compatible version of R is installed.

You should have R and optionally RStudio installed. Shiny at IQSS supports R 3.5.x to 3.6.x. If you're using R < 3.5.x, upgrade now as there is no guarantee that code built for R < 3.5.x will function when deployed to the Heroku environment.

You can find out the version of R you have installed through RStudio. Enter the following into the R Console.

> R.version.string
[1] "R version 3.6.1 (2019-07-05)"

Install Docker

This step is optional, but, highly reccomended. While you don't need Docker to deploy your Shiny applications to Heroku or develop applications locally, using Docker you'll be able run your Shiny application with the exact same tooling and libraries as in production.

You can download Docker for Windows, OS X, or Linux.

brew cask install docker

Install Heroku

You will need the Heroku CLI in order to properly configure and deploy your R Shiny application.

Now, you'll deploy the Shiny example application to Heroku.

Alternatively, if using OS X, you can use to install docker.

Follow the .

Windows
Mac
Getting Started - Installing Git
Mac
Windows
brew
Heroku CLI installation instructions