Hello all, 


I have a php script that makes a call 


system(PATH_PROJECT_ROOT . '/sh/combineDays.sh ' . $dateString . " " . PATH_PROJECT_ROOT); 


and within combineDays.sh I run an R script: 


R --slave --vanilla --args $testDates $BASEDIR $defaultSearchVersion < $BASEDIR"R/combineDays.R" 


At the end of this R script, I try to write results to a file, but the script seems to stop executing after I call sink(results.file) in the R script. I previously observed similar behavior when trying to call library() from within the same R script. 


When I run combineDays.sh from the shell, everything works fine. 


Any ideas? 


Thanks. 
	[[alternative HTML version deleted]]

