[R] executing rscript from VB

H Rao hydsdrao at gmail.com
Thu Sep 10 15:25:52 CEST 2009


Hi,
I am looking to execute an R script from VB as  below.
The script runs fine but the redirection doesnt seem to happen. The
redirection operator and the out file seem to be treated as arguments
to the R script. Is there a way to get the > operator working

thanks, R

System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo.FileName = "E:/R/bin/Rscript.exe";
proc.StartInfo.Arguments = "E:/R/bin/test.r > test.out";
proc.StartInfo.UseShellExecute = true;
proc.Start();




More information about the R-help mailing list