-
Notifications
You must be signed in to change notification settings - Fork 4
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:
- Make sure you have the necessary libraries:
install.packages(c("shiny", "shinythemes", "data.table", "tidyverse", "DT", "openxlsx", "plotly", "shinyjs", "htmltools", "odbc", "DBI"))
- After cloning the repo, switch to branch
elmer
.- If using git bash, you can use
git checkout elmer
- If using git bash, you can use
- 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
- comment out line 19
You are running the right version of the app if you see 2017/2019 Household Survey Results (Beta Version) in the upper left corner.
- To stop the app, in the right corner of the console window pane of the IDE, hit the red 'stop sign' button.