xref: /aosp_15_r20/external/rappor/apps/rappor-analysis/run_app.sh (revision 2abb31345f6c95944768b5222a9a5ed3fc68cc00)
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