[Jprogramming] Interfaces/R/batch

Bill Harris bill_harris at facilitatedsystems.com
Thu Feb 15 09:49:32 HKT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm trying the R batch interface, and it's not working.  I have R 2.4.1,
updated just yesterday.  I've gotten the public rcmd.ijs and modified
the RBINW line to 

RBINW=: 'c:\program files\r\r-2.4.1\bin\r.exe'

I've checked, and I get

,----[ J ijx snippet ]
|    RCMD_5_
| c:\program files\r\r-2.4.1\bin\r.exe  CMD BATCH --quiet --slave --vanilla c:\program files\j601\temp\r.in c:/program files/j601/temp/r.out
`----

I loaded rdcmd.ijs and did the '' conew 'prdcmd' as shown on the Wiki.

If I run   

  Rcmdr 'rnorm(5)'

I see a black terminal window pop up for a second, and then it goes
away.  J returns _1.

There is an r.in in c:/Program Files/j601/temp, but that's it.

,----[ r.in ]
| sink("c:/program files/j601/temp/r.res")
| print.eval=TRUE
| rnorm(5)
| sink()
`----

I could run Rserve or at least R using DCOM, but I'm not (yet).  Ideas?

BTW, I always have trouble finding the Interfaces page on the Wiki.  I
usually end up searching for it.  I've now discovered that it's
accessible through Guides from the FrontPage.  Would it be reasonable to
expand a bit on what Guides contains on the FrontPage, or am I the only
one who never thinks to look at it, because it looks so small compared
to the other, enumerated categories?

Thanks,

Bill
- -- 
Bill Harris                      http://facilitatedsystems.com/weblog/
Facilitated Systems                              Everett, WA 98208 USA
http://facilitatedsystems.com/                  phone: +1 425 337-5541
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32)
Comment: For more information, see http://www.gnupg.org

iD8DBQFF07wx3J3HaQTDvd8RAo8JAKCD/EvHN4kmmRn6FpfWbAK5z7GsRgCdFdra
UbePBA6BvoAR0GIlQBJ2lj0=
=aM2R
-----END PGP SIGNATURE-----



More information about the Programming mailing list