I am having trouble with ESS+R. I don't know if it is an ESS problem or an R problem, so I'm posting to this mailing list in the first instance. I am using R 1.6.2, Windows XP (latest updates installed), XEmacs 21.4, and ESS 5.1.21. I have experienced the same problem under Windows 2000 and recent versions of Emacs and ESS (though my current Windows XP installation is from scratch, and I've lost details of my old configuration). I start up XEmacs. I press M-R to start an R session. I straightaway do> quit()and it quits cleanly. Now I try something else. I start up XEmacs. I press M-R to start an R session. I do> hist(rnorm(10)) > dev.off()null device 1> quit()Save workspace image? [y/n/c]: n and then it fails to quit. The Windows task manager tells me that the process Rterm.exe is taking up 95% or so of CPU time. If I forcibly quit it, using the Windows task manager, I see in the XEmacs window: Process R exited abnormally with code 1 at <time>. (I can't see any reason why, even if there is a problem, Rterm should seemingly loop endlessly; that is why I am posting to this mailing list in the first instance.) If, from the Windows command prompt, I run rterm, and do> hist(rnorm(10)) > dev.off() > quit()it quits cleanly. In case it is relevant, I have made one change to the ESS file ess-site.el: I added (setq-default inferior-R-program-name "c:\\program files\\R\\bin\\Rterm.exe") (since otherwise it couldn't find Rterm.exe, even though it is on my path); also, my emacs init file init.el reads thus: (load "c:/program files/xemacs/xemacs-packages/lisp/ess/ess-site") (setq comint-scroll-to-bottom-on-output t) (setq ess-ask-for-ess-directory nil) (setq ess-pre-run-hook '((lambda () (setq S-directory default-directory)))) (setq ess-source-directory (expand-file-name "~/temp/")) (global-set-key [(shift return)] 'ess-eval-paragraph) Damon.
Damon Wischik <djw1005 at cam.ac.uk> writes:> I am having trouble with ESS+R. I don't know if it is an ESS > problem or an R problem, so I'm posting to this mailing list in > the first instance.Actually, it might be an Emacs problem -- or an R problem. The fact that R/ESS works under windows is simply amazing. Unfortunately, while I've seen it, I'm not sure how to solve it; it isn't your configuration. best, -tony -- A.J. Rossini Rsrch. Asst. Prof. of Biostatistics U. of Washington Biostatistics rossini at u.washington.edu FHCRC/SCHARP/HIV Vaccine Trials Net rossini at scharp.org -------------- http://software.biostat.washington.edu/ -------------------- FHCRC:Tu: 206-667-7025 (fax=4812)|Voicemail is pretty sketchy/use Email UW: Th: 206-543-1044 (fax=3286)|Change last 4 digits of phone to FAX (CHANGE: monday/wednesday/friday locations are completely unpredictable.)
Dear Tony and Damon, I, too, have seen this problem (and other similar problems) occasionally. I don't really understand the source of the problem, but I think that it involves synchronization issues, and I find that inserting delays between operations seems to help. Take a look, for example, at the configuration files I've posted at <http://www.socsci.mcmaster.ca/jfox/Books/Companion/ESS/>, in particular the menu items for exiting. Finally, I find that problems are less common with Windows 2000 than with Windows 9x, but I gather this isn't your experience. I hope that this helps, John At 10:49 AM 3/2/2003 -0800, A.J. Rossini wrote:>Damon Wischik <djw1005 at cam.ac.uk> writes: > > > > I am having trouble with ESS+R. I don't know if it is an ESS > > problem or an R problem, so I'm posting to this mailing list in > > the first instance. > >Actually, it might be an Emacs problem -- or an R problem. The fact >that R/ESS works under windows is simply amazing. > >Unfortunately, while I've seen it, I'm not sure how to solve it; it >isn't your configuration.----------------------------------------------------- John Fox Department of Sociology McMaster University Hamilton, Ontario, Canada L8S 4M4 email: jfox at mcmaster.ca phone: 905-525-9140x23604 web: www.socsci.mcmaster.ca/jfox -----------------------------------------------------