[ESS] R - Help buffer

gerald.jean at dgag.ca gerald.jean at dgag.ca
Tue Oct 21 16:14:04 CEST 2008



ess-help-bounces at stat.math.ethz.ch a écrit sur 2008/10/21 05:01:08 :

> >>>>> "gj" == gerald jean <gerald.jean at dgag.ca>
> >>>>>     on Mon, 20 Oct 2008 11:44:04 -0400 writes:
>
>     gj> ess-help-bounces at stat.math.ethz.ch a écrit sur 2008/10/20
11:07:29 :
>
>     >> gerald.jean at dgag.ca wrote:
>     >>
>     >> > But when I run R through ESS, C-c C-v will still prompt
>     >> > me for a help topic but when I type a topic what shows
>     >> > up in the *help[R] fct. name* buffer is:
>     >> >
>     >> > Error in help("glm", pager = "slynx -dump", window = F) :
>     >> >   unused argument(s) (window = FALSE)
>     >> >
>     >> > I tried setting the "pager" and the "help.pager"
>     >> > options to "emacsclient", as they are when running
>     >> > Splus but to no avail, I still get the same error.
>     >>
>     >> hmmm... there may be leakage from the lisp code for splus help
into the
>     >> lisp code  for R help help; R shouldn't need the pager to be
> set, and so
>     >> seeing pager = 'sylnx -dump' is the probable cause of the error.
>     >>
>     >> Can you try a new emacs session, start R and then try C-c
>     >> C-v?  (i.e. don't start S).  Also, take out any settings
>     >> for pager and help.pager from your .emacs, if it still
>     >> doesn't work.
>
>     gj> I restarted Emacs, did not start Splus and started R: same result
as
>     gj> before.
>
>     gj> I am not seeing any settings for "pager" and "help.pager" inmy
.emacs?
>
> In any case, the  'pager = "slynx -dump"'  part is definitely
> the culprit and it definitely is a leak from "S+ code for ESS"
> (I'm pretty sure I had added to ESS aeons ago).
>
> So, something in your Emacs initialization (typically inside
> ~/.emacs, but there are other possibilities) is the culprit.
>
> Try the following:
>
> 1) Start Emacs
> 2) M-x R
> 3) C-h v ess-customize-alist
>
> Should give about 20 lines of output in a *Help* buffer.
> One of these 20+ lines is particularly interesting; for me it is
>
>  (inferior-ess-help-command . "help(\"%s\", htmlhelp=FALSE)\n")
>
> and I bet that for you, it will contain the ominous "slynx ..."
> part.
> yes ?
>
Hello Martin,

first thanks for looking into this.  But I am afraid I have to answer "no"
to your question, i.e. no "slynx" in the *Help* produced but
ess-customize-alist.  Here is the content of this buffer.  I searched one
more time for the words "help" and "slynx" in my .emacs file but there is
no reference to them in there.

Hope you can make sense of this,

Gérald
======================================================================================
ess-customize-alist's value is shown below.

Documentation:
Variable settings to use for proper behavior.
Not buffer local!

Defined in `ess-cust'.

Value:
((ess-local-customize-alist quote R-customize-alist)
 (ess-dialect . "R")
 (ess-suffix . "R")
 (ess-dump-filename-template ess-replace-regexp-in-string "S$" ess-suffix
ess-dump-filename-template-proto)
 (ess-mode-syntax-table . R-syntax-table)
 (ess-mode-editing-alist . R-editing-alist)
 (ess-change-sp-regexp . ess-R-change-sp-regexp)
 (ess-help-sec-regex . ess-help-R-sec-regex)
 (ess-help-sec-keys-alist . ess-help-R-sec-keys-alist)
 (ess-loop-timeout . ess-S-loop-timeout)
 (ess-cmd-delay . ess-R-cmd-delay)
 (ess-function-pattern . ess-R-function-pattern)
 (ess-object-name-db-file . "ess-r-namedb.el")
 (ess-imenu-mode-function quote ess-imenu-R)
 (inferior-ess-program . inferior-R-program-name)
 (inferior-ess-objects-command . inferior-R-objects-command)
 (inferior-ess-font-lock-keywords . inferior-ess-R-font-lock-keywords)
 (inferior-ess-search-list-command . "search()\n")
 (inferior-ess-help-command . "help(\"%s\", htmlhelp=FALSE)\n")
 (inferior-ess-help-filetype)
 (inferior-ess-exit-command . "q()")
 (inferior-ess-exit-prompt . "Save workspace image? [y/n/c]: ")
 (inferior-ess-primary-prompt . "\\([A-Z][][A-Za-z0-9.]*\\)?> ")
 (inferior-ess-secondary-prompt . "+ ?")
 (inferior-ess-start-file)
 (inferior-ess-start-args . "")
 (ess-STERM . "iESS")
 (ess-editor . R-editor)
 (ess-pager . R-pager)
 (ess-language . "S")
 (inferior-ess-exit-command . "q()\n")
 (inferior-ess-language-start eval inferior-S-language-start)
 (comint-use-prompt-regexp-instead-of-fields . t))
> Martin
>
> ______________________________________________
> ESS-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help



Le message ci-dessus, ainsi que les documents l'accompagnant, sont destinés
uniquement aux personnes identifiées et peuvent contenir des informations
privilégiées, confidentielles ou ne pouvant être divulguées. Si vous avez
reçu ce message par erreur, veuillez le détruire.

This communication ( and/or the attachments ) is intended for named
recipients only and may contain privileged or confidential information
which is not to be disclosed. If you received this communication by mistake
please destroy all copies.



More information about the ESS-help mailing list