Hi Steve, Thanks for your advice.
> Actually, for that to work, the path for your R executable needs to be > in emacs' exec-path: http://www.emacswiki.org/emacs/ExecPath appending the /sw/bin directory to the exec-path and PATH variables (useful for Mac OS X users running LaTeX): (setenv "PATH" (concat (getenv "PATH") ":/sw/bin")) (setq exec-path (append exec-path '("/sw/bin"))) On which file shall I add above command lines? On terminal running; $ which R /usr/bin/R Whether replace /sw/bin with /usr/bin Or run above 2 lines on terminal? TIA > I believe the latest version is 5.11 -- you might want to try that. If fail I'll remove the running Emacs and ESS and reinstall version 5.11 B.R. Stepheh L ----- Original Message ---- From: Steve Lianoglou <mailinglist.honey...@gmail.com> To: Stephen Liu <sati...@yahoo.com> Cc: r-help@r-project.org Sent: Tue, September 7, 2010 11:49:26 AM Subject: Re: [R] How to run R on Emacs+ESS Hi, On Mon, Sep 6, 2010 at 9:01 PM, Stephen Liu <sati...@yahoo.com> wrote: <snip> > $ apt-cache policy ess > ess: > Installed: 5.3.8~svn3917-1 > Candidate: 5.3.8~svn3917-1 > Version table: > *** 5.3.8~svn3917-1 0 > 500 http://ftp.hk.debian.org lenny/main Packages > 100 /var/lib/dpkg/status I believe the latest version is 5.11 -- you might want to try that. Others my not agree with me, but I'd just try to install it w/o using debian's package manager. ESS is actually very easy to install just by downloading the latest release and following the install instructions. As long as you have a running version of R (executed by running `R` from you command line), the `M-x R` should work. Actually, for that to work, the path for your R executable needs to be in emacs' exec-path: http://www.emacswiki.org/emacs/ExecPath I think it should (by default) pull in the dirs in your $PATH variable. Also ... > On terminal: > $ emacs > > starts Emacs with 2 boxes; Doesn't this (emacs starting w/ 2 "boxes) usually happen when there is some error while running emac's init code (somewhere in your .emacs file, or another file it links to)? Unless, of course, you explicitly make it do so but it doesn't sound like that's the case. -- Steve Lianoglou Graduate Student: Computational Systems Biology | Memorial Sloan-Kettering Cancer Center | Weill Medical College of Cornell University Contact Info: http://cbio.mskcc.org/~lianos/contact ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.