[ESS] RGUI not responding

Chris Evans chris at psyctc.org
Thu Mar 31 19:03:04 CEST 2005


On 31 Mar 2005 at 11:28, Richard M. Heiberger wrote:

> John's suggestion makes sense.
> 
> The default value of inferior-R-program-name is "Rterm".
> If c:/progra~1/R/rw2001/bin is in your PATH environment variable, 
... hm.  Plot thickens, jumped to a DOS window and that wasn't in the 
path variable though I certainly haven't removed it.  I've tweaked 
the system setting and got it back in... but odd things followed ...

> then M-x R will get you an inferior R running inside the *R* buffer
> inside emacs and it will be properly connected to receive C-c C-n
> commands from the myfile.r buffer. 
In Xemacs I get a session like that by default as I launch.  I'd love 
not to have that so presumably that means there's something I've got 
in that ess-site.el that is launching that inferior R without waiting 
to be asked.  Maybe that's a problem?  However, that's been the case 
ever since I first installed Xemacs/ESS over a year or so ago I'd 
say.

> If the PATH isn't right or if you changed the value of
> inferior-R-program-name, that could cause trouble.
> 
> Check your PATH from the
>    M-x shell
Xemacs gives:

A subdirectory or file .exe already exists.
Error occurred while processing: .exe.
A subdirectory or file -i already exists.
Error occurred while processing: -i.

Process cmd.exe exited abnormally with code 1

Oh!

Emacs gives:
Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.

d:\emacs-21.3\bin>path
path
PATH=C:\Program Files\XEmacs\XEmacs-21.4.13\i586-pc-
win32;D:\Perl\bin\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C
:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program 
Files\Common Files\Roxio Shared\DLLShared;C:\Program Files\Common 
Files\GTK\2.0\bin;C:\progra~1\R\rw2001\bin;C:\Program Files\SPSS Data 
Access Pack\;c:\program files\gnuwin32\bin

d:\emacs-21.3\bin>

> Check the value of inferior-R-program-name with C-h v
> inferior-R-program-name 

Xemacs gives: 

`inferior-R-program-name' is a variable declared in Lisp. -- loaded 
from "ess-cust"  

Value: "c:/Program Files/R/rw2001/bin/rterm.exe"

Documentation:
*Program name for invoking an inferior ESS with M-x R.

Emacs gives:
inferior-R-program-name's value is 
"C:\\Program Files\\R\\rw2001\\bin\\Rterm.exe"

Documentation:
*Program name for invoking an inferior ESS with M-x R.

You can customize this variable.

Defined in `ess-cust'.

Interesting.  The plot seems to have thickened.  The other thing that 
has changed, perhaps as a result of that path change but I wonder ... 
is that I can now only get the graphics window inactive for short 
periods, seconds, and I have a hunch that when I have, putting 
another command, even a carriage return, through the inferior R 
process, clears it.

Here's an e.g. that was locking it:
PDQTOT <- c(54,42,38,59,45,51,35,54,46,34,44,43,46,69,50,
   32,53,47,56,50,0,31,49,47,0,
   57,69,49,48,53,NA,0,49,43,25,
   52,39,54,34,42,34,36,77,50,50,65,57,46,53,NA,
   58,NA,43,59,26,60,29,25,42,43,33,43,3,53,16,
   32,61,53,61,30,83,49,32,49,39,
   43,50,52,56,47,49,54,60,43,40,56,53,59,49,57,
   NA,NA,50,NA,NA,48,46,NA,53,64,
   57,47,NA,42,49,50,NA,NA,59,63,40,
   51,49,42,45,47,50,0,60,42,34,66,50,61,59,
   53,48,61,14,41,53,47,42,69,50,66,32,42,51,
   36,31,59,24,62,54,42,71,74,46,28,
   39,68,27,47,38,45,47,54,61,51,53,49,39,
   22,48,51,64,52,45,19,16,18,17,31,40,
   47,34,37,40,28,54,44,36,44,7,48,33,17,
   39,33,0,43,27,NA,23,12,23,24,24,56,
   30,72,51,0,27,17,58,17,10,45,32,0,21,
   66,35,9,47,66,NA,27,53,74,38,56,NA,
   52,44,15,29,46,14,39,37,29,17,33,50,38,24,30,54,34)
TC1 <- c(1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,
    3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,
    5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,8,8,
    8,8,8,8,8,8,8,8,8,8,8,8,8,8,10,10,10,10,10,10,10,10,10,10,10,
   10,10,10,10,10,10,10,10,11,11,11,11,11,11,
   11,11,11,12,12,12,12,12,12,12,12,
    12,12,12,12,12,12,12,12,12,12,12,
    12,12,12,12,12,12,12,12,12,12,12,12,12,12,
    12,12,12,12,12,12,12,12,12,12,12,12,12,12,
    12,12,12,12,12,12,13,13,13,13,14,
    14,14,14,14,14,14,14,15,15,15,16,16,16,16,
    16,16,16,16,19,19,19,19,19,19,19,
    19,20,20,20,20,20,20,20,20,20,20,
    20,20,20,20,20,20,20,20,20,20,20,20,20,20,
    20,20,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22)
boxplot(PDQTOT ~ TC1,notch=T)

Now it will only do so transiently.  Very weird.

Any further thoughts happily accepted and I'm also happy to reinstall 
any and all of Emacs, Xemacs and ESS as I've no other customisations 
of any of them that would risk being lost.

Thanks very, very much for all this input so far too.

Chris
-- 
Chris Evans <chris at psyctc.org>
Consultant Psychiatrist in Psychotherapy, Rampton Hospital; 
Research Programmes Director, Nottinghamshire NHS Trust, 
Hon. SL Institute of Psychiatry
*** My views are my own and not representative of those institutions 
***




More information about the ESS-help mailing list