#!/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 sed "s@/R.bin@/RAqua@;" < bin/R > bin/R.tmp sed "s@/MacOS/sh@/bin/sh@;" < bin/R.tmp > bin/R chmod a=+rwx bin/R rm bin/R.tmp