[ESS] help("foo") opens web browser but ?foo doesn't
Henrik Singmann
henrik.singmann at psychologie.uni-freiburg.de
Wed Mar 13 15:41:01 CET 2013
Unfortunately my problem is not related to this issue. My .Rprofile works (e.g., I can change stringsAsFactors to FALSE in the .Rprofile and see it in Emacs R).
The problem is solely caused by the following command that is always run when ESS starts R and I have no idea how to overcome it or how to run something afterwards (unfortunately .Rprofile seems to be executed before this line):
options(chmhelp=FALSE, help_type="text")
Any help on how to change this start up command would be extremely awesome.
btw, thanks for your help so far Marc, really helped me to dig into the issue (albeit without solution yet).
Cheers,
Henrik
Am 13.03.2013 14:30, schrieb Marc Schwartz:
> On Mar 13, 2013, at 7:57 AM, Henrik Singmann <henrik.singmann at psychologie.uni-freiburg.de> wrote:
>
>>
>> Am 13.03.2013 13:13, schrieb Marc Schwartz:
>>> Different incantation in .emacs:
>>>
>>> (setq inferior-ess-r-help-command "help(\"%s\", help_type=\"html\")\n")
>>>
>>> which works in both cases.
>>
>> Thanks, but unfortunately produces the exact same behavior on my machine: opens browser for help("foo") but Emacs buffer for ?foo.
>>
>> I realized it has to do with the options. When starting the R terminal from within emacs I get:
>>
>>>> options(chmhelp=FALSE, help_type="text")
>>> options(STERM='iESS', str.dendrogram.last="'", editor='emacsclient.exe', show.error.locations=TRUE)
>>
>> When running
>>
>>> options(help_type="html")
>>
>> I get the desired behavior afterwards.
>>
>> However, I am unable to change my R startup options for the desired behavior. My Rprofile.site does contain the correct options. If adding a .Rprofile to my home directory (where my .emacs is located) with this line it doesn't help either. Googling was also no help.
>>
>> So my question is: How do I customize my ESS startup options. Is there a variable for that?
>>
>> Thanks,
>>
>> Henrik
>
>
> Not being on Windows, there may be some subtleties here, especially with Win7. However, a search of the R e-mail list archives comes up with the following thread:
>
> http://tolstoy.newcastle.edu.au/R/e17/help/12/05/12352.html
>
> which may be helpful in some fashion. There does appear to be some interaction with the relevant help setting in .Rprofile and the setting in .emacs relative to the behavior you are observing.
>
> Creating a .Rprofile in your local user folder should work, as opposed to creating/editing a .Rprofile.site file, which would be for multiple users, unless that is your situation.
>
> If you use a local user specific .Rprofile, be sure to fully exit from Emacs/ESS/R and then restart, lest the file not be re-loaded upon ESS/R's startup.
>
> Regards,
>
> Marc
>
> ______________________________________________
> ESS-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
>
--
Dipl. Psych. Henrik Singmann
PhD Student
Albert-Ludwigs-Universität Freiburg, Germany
http://www.psychologie.uni-freiburg.de/Members/singmann
More information about the ESS-help
mailing list