diff options
Diffstat (limited to 'bin/decode-assoc')
-rw-r--r-- | bin/decode-assoc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/bin/decode-assoc b/bin/decode-assoc new file mode 100644 index 0000000..aaa2050 --- /dev/null +++ b/bin/decode-assoc @@ -0,0 +1,19 @@ +#!/bin/bash +# +# Decode multidimensional reports. +# +# This is a tiny shell wrapper around R. + +readonly THIS_DIR=$(dirname $0) + +# NOTE: A trailing / is *required* on RAPPOR_REPO, because we use string +# concatenation to form the absolute path. (file.path() in R doesn't do what +# we want.) + +readonly RAPPOR_REPO=$THIS_DIR/../ + +# RAPPOR_REPO is used by source() statements to find .R files. +export RAPPOR_REPO + +# Make sure to reuse the same process so it can be killed easily. +exec $THIS_DIR/decode_assoc.R "$@" |