Skip to content

help.start() displays index.html in emacs (PR#13293)

2 messages · Juergen Rose, Brian Ripley

#
Full_Name: Juergen Rose
Version: 2.8.0 (2008-10-20)
OS: Linux  2.6.27.4 x86_64 Intel
Submission from: (NULL) (87.185.220.122)


If I start as ordinary user rose R and help.start(), the help is displayed in
emacs. If I do as the user root, file:///tmp/Rtmpyzlc7Y/.R/doc/html/index.html
is shown as expected in a firefox windows. So it seems to be connected with my
private configuration. But I can not find such a configurations:

rose at condor:/home/rose(114)$ ll ~/.R*
-rw-r--r-- 1 rose users 2369 Jan 20  2008 /home/rose/.RapidSVN

I also tried to start R with strace:
rose at condor:/home/rose(119)$ strace -f -o R_strace.log R

and greped for mime:

rose at condor:/home/rose(120)$ grep "open.*rose.*mime" R_strace.log 
7221  open("/home/rose/.local/share//mime/mime.cache", O_RDONLY) = 14
7221  open("/home/rose/.local/share/applications/mimeinfo.cache", O_RDONLY) =
14
7221  open("/home/rose/.local/share/applications/mimeapps.list", O_RDONLY) = 14
7223  open("/home/rose/.local/share//mime/mime.cache", O_RDONLY) = 7

and then I searched for emacs in these files:


rose at condor:/home/rose(121)$ for f in /home/rose/.local/share//mime/mime.cache
/home/rose/.local/share/applications/mimeinfo.cache
/home/rose/.local/share/applications/mimeapps.list
/home/rose/.local/share//mime/mime.cache; do echo "------------------ f=$f
--------------";   grep emacs $f ; done
------------------ f=/home/rose/.local/share//mime/mime.cache --------------
------------------ f=/home/rose/.local/share/applications/mimeinfo.cache
--------------
application/x-x509-ca-cert=emacs-21-usercustom.desktop
------------------ f=/home/rose/.local/share/applications/mimeapps.list
--------------
------------------ f=/home/rose/.local/share//mime/mime.cache --------------

But I could not find anything suspicious
#
On Sun, 16 Nov 2008, rose at rz.uni-potsdam.de wrote:

            
So why report this as a bug in R (especially without reading the help 
pages concerned)?

help.start uses R_BROWSER to select the browser in use via browseURL: see 
the help for help.start and browseURL.  Check options("browser") in each 
of the accounts.

Another thing you have not told us is how you installed R: the default for 
R_BROWSER is set at install time in R_HOME/etc/Renviron.  However, as it 
works correctly for 'root', I guess it is your account that has some 
setting of the browser to be used.