Ultimately, I would like to launch R (from another application) with a
script as an argument that creates a plot. I am running on Windows XP with
R 2.4.0. I currently can do this with S-Plus from my application by giving
this command:
C:\Program Files\Insightful\splus62\cmd\splus.exe
I assume this is windoze. Have you considered using the Rterm? You can
have in your script the plot to be created as an eps file
Lanre
Bill Bachman wrote:
Ultimately, I would like to launch R (from another application) with a
script as an argument that creates a plot. I am running on Windows
2006/11/8, Lanre Okusanya [EMAIL PROTECTED]:
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
Thank you to Paul Murrell for a solution:
# test.R
require(graphics)
a-c(1,2,3,4)
b-c(1,4,9,16)
plot(a,b)
-Original Message-
From: Lanre Okusanya [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 08, 2006 1:04 PM
To: Bill Bachman
Cc: r-help@stat.math.ethz.ch
Subject: Re: [R] can