Skip to content

Run app locally (Elmer branch)

Christy Lam edited this page Apr 2, 2020 · 3 revisions

The elmer branch is the latest version of the Travel Household Survey App that analyzes 2017/2019 data directly from Elmer. To run locally, follow the steps below:

  1. Make sure you have the necessary libraries: install.packages(c("shiny", "shinythemes", "data.table", "tidyverse", "DT", "openxlsx", "plotly", "shinyjs", "htmltools", "odbc", "DBI"))
  2. After cloning the repo, switch to branch elmer.
    • If using git bash, you can use git checkout elmer
  3. Open file shiny/global.R:
    • comment out line 19 wrkdir <- "/home/shiny/apps/testing-travel-study-stories/shiny"
    • add your own wrkdir <- "path to where your local repo is located" e.g. lines 15 or 16
    • save file
    • click the green triangular 'Run App' button on the right corner of the scripting window pane in the IDE

You are running the right version of the app if you see 2017/2019 Household Survey Results (Beta Version) in the upper left corner.

  1. To stop the app, in the right corner of the console window pane of the IDE, hit the red 'stop sign' button.
Clone this wiki locally