#!/bin/sh # Shell wrapper for R executable. sed "s@/bin@/MacOS@;" < bin/R > bin/R.tmp sed "s@R_HOME_DIR=.*@R_HOME_DIR=`pwd`@;" < bin/R.tmp > bin/R chmod a=+rwx bin/R rm bin/R.tmp