[Rd] help.search() in html?

Duncan Murdoch murdoch.duncan at gmail.com
Wed Feb 15 16:17:36 CET 2012

On 15/02/2012 8:03 AM, hkawakat at gmail.com wrote:
> Hi,
> I have options(help_type="html") in my .Rprofile and when I type
> ?foo, the man page appears as a new tab in my web browser (which is
> already running). Fine. However, when I type ??foo, rather than the
> results appearing in a new tab, a new instance of the web browser is
> spawned with the default homepage displayed. Same with
> help.search("foo"). Am I the only one seeing this? Is there some
> setting/option that I am missing?
> (At the moment, I bring up a man page via ?foo and then manually
> follow the<Index>  link at the bottom of the page to go up to the
> search engine page.) R --vanilla shows the results of ??foo in the
> terminal window as expected.

I just tried it on Windows, and got this error message in R-devel:

 > options(help_type="html")
 > ??mean
starting httpd help server ... done
Error in shell.exec(url) :
   ' 13432 /doc/html/Search?pattern= mean          ' 
not found

Looks like some spaces have crept into the URL.  I'll take a look.  
(R-patched was fine.)

Duncan Murdoch

> I am running
> >  sessionInfo()
> R Under development (unstable) (2012-02-13 r58337)
> Platform: x86_64-unknown-linux-gnu (64-bit)
> locale:
>   [1] LC_CTYPE=en_GB.UTF-8       LC_NUMERIC=C
>   [3] LC_TIME=en_GB.UTF-8        LC_COLLATE=en_GB.UTF-8
>   [7] LC_PAPER=C                 LC_NAME=C
>   [9] LC_ADDRESS=C               LC_TELEPHONE=C
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods   base
> loaded via a namespace (and not attached):
> [1] tools_2.15.0
> h.

More information about the R-devel mailing list