Paul,

you hit two issues.

1. ESS by default finds R automatically when R is installed in the standard
places
defined by R-Core which are (in English locales, it also does the right
thing in other languages)
c:/Program Files/R/R-*/
When you place R in a non-standard place such as c:/Program Files/R/, a
workaround
like the one that you used is necessary.  It would be better to put that
statement
  (setq-default inferior-R-program-name "c:/Program
Files/R/bin/i386/rterm.exe")
in your .emacs, rather than make changes to ess-site.el.  This type of
workaround is
illustrated in ess-site.el.


2. The gnuclient issue.  We have gnuclient hardwired in the code for
Windows.
The newer emacs distributes with emacsclient.

You can manually issue the command to R,

   options(STERM='iESS', editor='emacsclientw.exe')

I don't like emacsclient as much as I liked gnuclient.  If you still have an
old gnuclient
on your machine you can use it by starting it in your .emacs file.

ESS intercepts R page() commands at the command line and open them in emacs.
That is somewhat easier since the pager doesn't have a return value.

It is not obvious to me why you would want to use the R fix() or edit()
command when you
are working in the emacs environment.

Question for other ESS-core members:  would it make sense to intercept the
edit()
and fix() commands?  See defun inferior-R-input-sender in ess-inf.el for
details.


Rich



On Tue, Mar 1, 2011 at 10:57 PM, Paul Johnson <pauljohn32@gmail.com> wrote:

> Hi, guys.  I'm playing windows again today.  I think you know from
> recent posts, I don't like this, but I still try to be helpful.  I had
> the problem today that many ESS processes would just hang, refusing to
> accept more input (like that weirdness with Sweave and ESS we were
> discussing last month).   I noticed Emacs  was last year's Emacs, so I
> got the new one.
>
> Look what happened?
>
> > fix(lm)
> Error in edit(name, file, title, editor) :
>  unable to run editor 'gnuclient.exe'
>
> I'm Googling, it seems as thought it shouldn't happen anymore:)  I
> suspect I've done something the old fashioned way and broken the
> newfangled way.
>
> I just installed Prof Goulet's Emacs 23.2 version 9 on a Windows 7
> system.  That defaulted to put itself into c:\Program Files (x86)\GNU
> Emacs-23.2
>
> I also installed R 2.12.2 that now has both the 32 and 64 bit
> versions. I installed R in c:\Program Files\R  (no version number) and
> Emacs with ESS doesn't find that.
>
> So I decided to fiddle ess site-start.el. This is AT THE TOP of that file
>
> (setq-default inferior-R-program-name
>              "c:/Program Files/R/bin/i386/rterm.exe")
>
> That works.
>
> I start Emacs by running "runemacs.exe".
>
> --
> Paul E. Johnson
> Professor, Political Science
> 1541 Lilac Lane, Room 504
> University of Kansas
>
> ______________________________________________
> ESS-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
>

	[[alternative HTML version deleted]]

