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:-6789} 10 11# host= makes it serve to other machines, not just localhost. 12exec R --vanilla --slave -e "shiny::runApp('$app_dir', host='0.0.0.0', port=$port)" 13