1#!/bin/sh 2# 3# Run the Shiny app in this directory. 4# 5# Usage: 6# ./run_app.sh [port] 7 8app_dir=$(dirname $0) 9port=${1:-6788} 10 11# Needed by source.rappor in analysis/R/*.R 12export RAPPOR_REPO=../../ 13 14# host= makes it serve to other machines, not just localhost. 15exec R --vanilla --slave -e "shiny::runApp('$app_dir', host='0.0.0.0', port=$port)" 16