diff options
Diffstat (limited to 'apps/rappor-sim/run_app.sh')
-rwxr-xr-x | apps/rappor-sim/run_app.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/apps/rappor-sim/run_app.sh b/apps/rappor-sim/run_app.sh new file mode 100755 index 0000000..ae38c61 --- /dev/null +++ b/apps/rappor-sim/run_app.sh @@ -0,0 +1,15 @@ +#!/bin/sh +# +# Run the Shiny app in this directory. +# +# Usage: +# ./run_app.sh [port] + +app_dir=$(dirname $0) +port=${1:-6788} + +# Needed by source.rappor in analysis/R/*.R +export RAPPOR_REPO=../../ + +# host= makes it serve to other machines, not just localhost. +exec R --vanilla --slave -e "shiny::runApp('$app_dir', host='0.0.0.0', port=$port)" |