[ESS] 'Can't get splus2000 to work with ESS'

Fredrik Lundgren fredrik.bg.lundgren at bredband.net
Sat Jan 22 14:23:16 CET 2005


Hello,

I use Win XP, Xemacs 21.4.13, ESS 5.2.3, and Splus 2000.
I also use R 2.0.1 which work without problems with ESS. My init.el with 
respect to ESS as seen below. My PATH as seen below.

I start with loading Xemacs with a scipt 'something.s' and menus ESS and 
Imenu-S shows up OK on Xemacs.

First I try to start the inferiro S process from the meny
ESS/Start process/Sqpe
I get prompted for working directory
Xemacs responds:
Searching for program: No such file or directory, 
c:/program~1/insigh~1/splus6/cmd
which is correct as I've got Sqpe in
C:\Program\sp2000\cmd

Next I try with M-x S4
and is prompted for directory OK
Xemacs responds:
Searching for program: No such file or directory, S4

Next I try with M-x S+4
Xemacs starts fontifying *S+4*... (takes long time)
and opens *S+4*, *S+6*, and *S4* in separate windows.
In *S+4* the output is
$ c:/progra~1/spls45se/cmd/Splus.exe /MULTIPLEINSTANCES 
S_PRINT_COMMAND=gnuclientw.exe 
S_PROJ=c:\Program\sp2000\users\FL\S-PLUS~2\Dobson
c:/progra~1/spls45se/cmd/Splus.exe: not found
$
Theres is also the $ prompt and when I try
$ ls()
the prompt changes to >
> ls()
the prompt changes to $

Evidently my Xemacs/ESS can't find sqpe.exe in
C:\Program\sp2000\cmd and looks for it in c:/progra~1/spls45se/cmd/

How do I tweak init.el or whatever so this works?

Many thanks in advance
and best wishes

Fredrik Lundgren
Norrköping
Sweden

Below you will find init.el and path






part of init.el with respect to ESS

...
;;;--------------------------------------------------------------------
;;  Lines enabling ess-mode

;;  Edit to reflect the location of the ESS icons

  (setq-default ess-icon-directory 
"C:/Program/XEmacs/xemacs-packages/etc/ess")

;;  Make ess available

  (require 'ess-site)

;;  The following expression causes source files
;;  to be saved in the subdirectory 'Src' of the directory the ESS 
process
;;  was run in

  (setq ess-source-directory
 (lambda ()
   (concat ess-directory "Src/")))

;; Note that R also accepts Rd files with extension `rd'; to activate
;; ESS[Rd] support for this extension, you may need to add

     (add-to-list 'auto-mode-alist '("\\.rd\\'" . Rd-mode))

;; to one of your Emacs startup files.

;; To automatically turn on the abbrev and font-lock features of Rd
;; mode, add the following lines to one of your Emacs startup files:

     (add-hook 'Rd-mode-hook
               (lambda ()
                (abbrev-mode 1)
                (font-lock-mode 1)))


;;  End of line for ess-mode
;;;--------------------------------------------------------------------

;;;--------------------------------------------------------------------
;;  Line to set the path for S2000

  (setq ess-SHOME-versions 'splus2000)

;;  End of line for the path for S2000
;;;--------------------------------------------------------------------
...

PATH=
c:\program\imagemagick-6.1.8-q16;
C:\Program\TeXLive\bin\win32;
C:\WINDOWS\system32;
C:\WINDOWS;
C:\WINDOWS\system32\WBEM;
C:\Program\Aspell\bin;
C:\Program\Perl\bin\;
C:\Documents and Settings\Fredrik Lundgren\Mina dokument\rtools;
C:\Program\MinGW\bin;
C:\Program\HTML Help Workshop;
C:\Program\ATI Technologies\ATI Control Panel;
C:\Program\R\rw2001\bin;
C:\Program\XEmacs\XEmacs-21.4.13\i586-pc-win32;
C:\Program\gnuplot\bin;
C:\Program\MySQL\MySQL Server 4.1\bin;
C:\Program\sp2000\cmd;




More information about the ESS-help mailing list