[ESS] trace(zapsmall, edit=TRUE) problem under ESS?

Sebastian P. Luque spluque at gmail.com
Wed Oct 1 05:46:20 CEST 2008

Hi Spencer,

On Fri, 26 Sep 2008 03:40:50 -0700,
Spencer Graves <spencer.graves at pdf.com> wrote:

> Hello: I have an ESS problem with an example in Chambers (2008)
> Software for Data Analysis (Springer, p. 70): He describes using
> "trace(zapsmall, edit=TRUE)", which gives me the following:

>> trace(zapsmall, edit=TRUE)
> Error in edit(name, file, title, editor) : unable to run editor
> 'gnuclient.exe'

> 	  I asked John about this.  He replied, "I don't use ESS to run
> examples, but I recollect this question was discussed on the ESS
> mailing list."

> 	  If someone can help me with this, it will likely help more
> than just me, because it will likely go into a script file in the SoDA
> package, companion to Chambers (2008), following the Bates model in
> "system.file('scripts', package='nlme')".

I don't use XEmacs, but I'll take a stab at it since no XEmacs users
have followed up.  Are you sure gnuclient was started in your XEmacs
session? Looks like your 'editor' option is set to use that.  I think a
(gnuserv-start) needs to be called in ~/.emacs or whatever XEmacs uses
at start-up.  gnuclient might need other things to be set up, so check
its docs.  With the native Emacs server, I have:


and then in ~/.bashrc:

export EDITOR="emacsclient --alternate-editor emacs +%d %s"

This is surely different with XEmacs and its gnuclient, and under MS
Windows, but hope it provides some hints.


More information about the ESS-help mailing list