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
  • Creating a new project
  • From GitHub
  • Enable Packrat
  • From scratch
  • Migrating an existing project
  1. Deploying

Developing locally with RStudio

PreviousBootstrapping a new Shiny app or migrating a pre-existing Shiny applicationNextDeveloping locally using Docker

Last updated 5 years ago

You can use RStudio to develop your Shiny application, whether starting a new application or migrating an already existing application. Follow these tips to ensure your RStudio workflow is optimized for Shiny on Heroku.

Creating a new project

From GitHub

If you cloned the as a template, when creating a new project in RStudio select Version Control

Enable Packrat

Click Tools → Project Options → Packrat.

Make sure that the following checkboxes are all selected. This will speed up your deployment process after the initial deploy.

  • ✔️ Use packrat with this project

  • ✔️ Automatically snapshot local changes

  • ✔️ Git ignore packrat library

  • ✔️ Git ignore packrat sources

From scratch

When creating a project from scratch in RStudio, make sure the following options are selected.

  • ✔️ Create a git repository

  • ✔️ Use packrat with this project

Migrating an existing project

Open your project normally as you would through RStudio and enable Packrat, following the above instructions for enabling Packrat support in a project.

heroku-docker-r-example-app
Your Packrat options should look like this
Your project options should look like this
When creating a new project, select project from version control.
Enter the details of your Git repository