[R] executing rscript from VB
bartjoosen
bartjoosen at hotmail.com
Fri Sep 11 09:34:56 CEST 2009
Maybe I'm missing something, but how about using the shell function?
Bart
Duncan Murdoch-2 wrote:
>
> 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.
>
> ______________________________________________
> 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.
>
>
--
View this message in context: http://www.nabble.com/executing-rscript-from-VB-tp25383342p25396386.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list