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]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to