winjava device on S-Plus 6.1 for Windows
John.Gavin at ubsw.com
John.Gavin at ubsw.com
Fri Oct 11 17:24:37 CEST 2002
Hi,
Rich Heiberger [mailto:rmh at surfer.sbm.temple.edu] wrote
> Insightful has introduced the library(winjava)
> and the java device for S-Plus 6.1 for Windows.
> This new device allows the ESS user to run S-Plus 6.1
> inside an *S+6* buffer in emacs,
I would like to use this new feature and have recently
moved to SPlus 6.1 on NT4,
but am stuck with a bug that I can't resolve.
After following the instructions in the email below,
to start SPlus within an *S+6* buffer,
I get the error 'Spawning child process: invalid argument',
as Emacs is about to start the SPlus session.
The ess buffer reads
------------
(Sqpe+6): ess-dialect=nil, buf=*scratch*
(inferior-ess 0): ess-start-args=nil
ess-setq-vars-default 0: ess-language=Initial, -dialect=nil,
buf=*ESS*, comint..echoes=nil, comint..sender=comint-simple-send
ess-setq-vars-default 1: ess-language=S, -dialect=S+6,
buf=*ESS*, comint..echoes=nil, comint..sender=comint-simple-send
(inf-ess 1): lang=S, dialect=S+6, tmp-dialect=S+6, buf=*scratch*
(inf-ess 1.1): procname=S+6 temp-dialect=S+6, buf-name=*S+6*
(inferior-ess) Method #3 start=s:/qrms/stats/r/ buf=*S+6*
(ess-setq-vars-LOCAL): language=S, dialect=S+6, buf=*S+6*,
comint..echoes=nil, comint..sender=comint-simple-send
(inf-ess 2.1): ess-language=S, ess-dialect=S+6 buf=*S+6*
(inf-ess 2.2): start args = nil, inf-ess-start-args=ALWAYS_PROMPT=X
(inf-ess finish [S(S+6),
c:/progra~1/insigh~1/splus6/cmd/Sqpe.exe(nil,nil)]
(ess-multi 0): inf-ess-start-args=ALWAYS_PROMPT=X, comint-..echoes=nil
(i-ess 1): buf=*S+6*, lang=S, comint..echo=nil,
comint..sender=comint-simple-send,
(i-ess 2): buf=*S+6*, lang=S, comint..echo=t,
comint..sender=inferior-ess-input-sender,
(ess-setq-vars-LOCAL): language=S, dialect=S+6, buf=*S+6*,
comint..echoes=t, comint..sender=inferior-ess-input-sender
(i-ess 3): curr-buf=*S+6*, comint..echo=t, comint..
sender=inferior-ess-input-sender,
(ess-multi post inf-ess: start-args=ALWAYS_PROMPT=X, comint-echoes=t
(ess-multi 1): start-args=ALWAYS_PROMPT=X
Making Process...Buf *S+6*, Proc S+6,
Prog c:/progra~1/insigh~1/splus6/cmd/Sqpe.exe
Start File=nil, Args= ALWAYS_PROMPT=X.
---------------
ESS seems to be looking for
'c:/progra~1/insigh~1/splus6/cmd/Sqpe.exe' although
the only splus folder in my PATH is 'c:\etc\splus6.1\cmd'.
Where in ESS is 'c:/progra~1/insigh~1/splus6/cmd/Sqpe.exe' specified?
Assuming ESS is correctly finding sqpe.exe in 'c:\etc\splus6.1\cmd'
(despite the output shown above) and is spawning a child process,
what arguments can I try specifying, to avoid the 'invalid argument' message?
(At the moment, the only argument that I enter is
the name of the directory where I want SPlus to start.)
I am using GNU Emacs 20.7.1, ESS 5.1.24, SPlus V6.1 on NT4 SP6.
Note that I can link a *.s file within ESS/Emacs to an existing
SPlus session, as per method a) in Richard's email below,
but I would prefer SPlus to be inside a buffer in emacs.
Regards,
John.
John Gavin <john.gavin at ubsw.com>,
Quantitative Risk Models and Statistics,
UBS Warburg, 100 Liverpool Street (6th floor),
London EC2M 2RH, UK.
Phone +44 (0) 207 567 4289
Fax +44 (0) 207 568 5352
-----Original Message-----
From: Rich Heiberger [mailto:rmh at surfer.sbm.temple.edu]
Sent: 11 October 2002 05:50
To: ess-help at stat.math.ethz.ch
Subject: winjava device on S-Plus 6.1 for Windows
Insightful has introduced the library(winjava) and the java device for
S-Plus 6.1 for Windows. This new device allows the ESS user to run S-Plus 6.1
inside an *S+6* buffer in emacs, in the normal style that Unix users expect,
and to get interactive graphics.
Start S-Plus 6.1 from emacs with the M-x Sqpe+6 command.
Open the new library with
library(winjava)
I recommend setting the Graph Window Options to "New Page".
sqpe
Behave as you would on a Unix machine.
Prior to 6.1, S-Plus on Windows was limited to one of two behaviors:
a. The GUI, with interactive graphics and one-way communication
to the S-Plus Commands Window as described in the ESS file
doc/README.SPLUS4WIN.
In summary, the normal C-c C-n and C-c C-r commands send lines from
the myfile.s buffer to the S-Plus Commands window and the results
appear in the S-Plus Commands window. The read-only *S+6* buffer is
necessary for the communication.
b. The familiar Unix-style text-based interaction in the *S+6* buffer
(using M-x Sqpe+6) but without interactive graphics. Static graphics to
a postscript driver was available.
Further discussion is in the article doc/ess-intro.pdf (in section 3.2
Interactive Processing) of the update ESS-5.1.24. I recommend that
you update to ESS-5.1.24.
Rich
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
ess-help mailing list -- To (un)subscribe, send
subscribe or unsubscribe
(in the "body", not the subject !) To: ess-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Visit our website at http://www.ubswarburg.com
This message contains confidential information and is intended only
for the individual named. If you are not the named addressee you
should not disseminate, distribute or copy this e-mail. Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses. The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission. If
verification is required please request a hard-copy version. This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
ess-help mailing list -- To (un)subscribe, send
subscribe or unsubscribe
(in the "body", not the subject !) To: ess-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the ESS-help
mailing list