Displaying 1 result from an estimated 1 matches for "makecommand".
2008 Nov 25
1
Problem running R from within a script
...taxonomy' batchMakeTax.R batchMakeTax.log
/usr/lib/R/bin/BATCH: line 55: Call0103.xpt: Permission denied
I do not know why it's trying to write to the input file... any ideas?
Here's the shellscript:
[josh at localhost cr]$ cat batchMakeTax.sh
#!/bin/sh
FILES="*.xpt"
echo MakeCommand is $makeCommand
for taxFile in $FILES
do
makeCommand="/usr/bin/R CMD BATCH --no-restore --no-save '--args $taxFile $taxFile.taxonomy' batchMakeTax.R batchMakeTax.log"
echo "Processing $makeCommand"
$makeCommand
done
...and, the R script. Not...