[R] RSiteSearch for words ``as one entity''.

Marc Schwartz marc_schwartz at comcast.net
Wed Sep 10 23:29:41 CEST 2008


on 09/10/2008 04:03 PM Rolf Turner wrote:
> 
> I tried to search for a string of words ``as one entity'' following the
> example in the help file:
> 
>> RSiteSearch("{logistic regression}")
> 
> and got the error message:
> 
> 2008-09-11 08:55:41.356 open[823] No such file:
> /Users/rturner/http:/search.r-project.org/cgi-bin/namazu.cgi?query={logistic+regression}&max=20&result=normal&sort=score&idxname=Rhelp02a&idxname=functions&idxname=docs

For some reason, it appears to be looking locally, rather than to the net.

On my system:

R version 2.7.2 Patched (2008-08-25 r46438)

running on F9:

> RSiteSearch("{logistic regression}")
A search query has been submitted to http://search.r-project.org
The results page should open in your browser shortly

and then it takes me to the search engine page.

Does this only happen with the above incantation using the braces, or
does it happen without them as well?

Even if I directly use browseURL(), which is the relevant function in
RSiteSearch(), I cannot get it to behave in the way you have above, even
if I only use a single slash in the http:/ part of the URL. Somehow it
is paste()ing your $HOME folder as a prefix.

You might want to try it with R --vanilla, just to see if something is
amiss in your R session.

You might also want to post to the sig-mac list in case this is Mac
specific.

HTH,

Marc Schwartz



More information about the R-help mailing list