[R] can Rgui.exe be launched with a script as an argument?

Hans-Peter gchappi at gmail.com
Wed Nov 8 21:04:11 CET 2006


2006/11/8, Lanre Okusanya <lanre.okusanya at gmail.com>:
> I assume this is windoze. Have you considered using the Rterm? You can

windows...   afaic

try with R.exe or, as said and imho better, Rterm.exe. Examples

testR.bat:
 set cmd=C:\Programme\R\R-2.3.1\Bin\R.exe
 call %cmd% CMD BATCH --slave --vanilla --args "sayHello.R" "rout.txt"

testT.bat:
 set cmd=C:\Programme\R\R-2.3.1\Bin\Rterm.exe
 call %cmd% --vanilla < sayHello.R > rtermout.txt

sayHello.R:
 cat( "hello chappi\n" )
 q()


--
Regards,
Hans-Peter



More information about the R-help mailing list