[ESS] ESS sets options(editor="gnuclient.exe") , but gnuclient.exe fails to run.

Josh O'Brien joshmobrien at gmail.com
Tue Oct 2 06:15:07 CEST 2012


On Mon, Oct 1, 2012 at 5:38 PM, Richard M. Heiberger <rmh at temple.edu> wrote:
> gnuclient used to be part of emacs.  now it uses emacsclient.
> I will change ESS to default to emacsclientw.
>
> Here is the workaround.  At the R prompt in the *R* buffer, enter
> options(editor="c:/emacs/emacs-23.2/bin/emacsclientw.exe") ## use the PATH
> for your machine
>
> now
> edit(x)
> will open x in an emacs buffer.  Close and return the edited value to R
> with C-x #
> enter "y" when prompted to save the file.
> The revised version will be returned.
>

Many thanks. That works as long as I also include the following line
in my init file:

(server-start)

- Josh

>
> Rich
>
>
> On Mon, Oct 1, 2012 at 6:42 PM, Josh O'Brien <joshmobrien at gmail.com> wrote:
>>
>> Hello,
>>
>> During package development, I often use trace("foofun", edit=TRUE) to
>> test small code edits without having to reinstall the entire package.
>> This should launch the editor pointed to by options("editor"), which
>> is set by ESS to options(editor="gnuclient.exe"). (The responsible
>> code seems to be in lines 1396-1402 of ess-custom.el)
>>
>> When I try to use trace() like this, though, I get the following error:
>>
>> >  trace("mean", edit=TRUE)
>> # Error in edit(name, file, title, editor) :
>> #   unable to run editor 'gnuclient.exe'
>>
>> I am using R-2.14.2 for Windows, Vincent Goulet's Windows bundle of
>> Emacs 23.3, and ESS 12.09.
>> My R executables are stored under C:/R/, and I point to them using this:
>>
>> (setq ess-directory-containing-R "c:")
>> (load "ess-site")
>>
>> How might I fix this?  Do I need to download and install
>> gnuclient.exe, or point to another editor (which?), or something else?
>> Also, might this be happening because I run R from a non-standard
>> folder?
>>
>> Please let me know if other details of my setup might help in diagnosing
>> this.
>>
>> Thanks,
>>
>> Josh O'Brien
>>
>> ______________________________________________
>> ESS-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/ess-help
>
>



More information about the ESS-help mailing list