[R] executing rscript from VB

Duncan Murdoch murdoch at stats.uwo.ca
Thu Sep 10 16:35:26 CEST 2009


On 9/10/2009 9:25 AM, H Rao wrote:
> 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

That's a VB question.  You should ask Microsoft.

Duncan Murdoch

> 
> 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();
> 
> ______________________________________________
> R-help at 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.




More information about the R-help mailing list