[R] Location of HTML help files

Henrik Bengtsson hb at stat.berkeley.edu
Thu Jul 17 05:45:07 CEST 2008


Hi,

could be a browser issue.  What browser are you using?  I see this
behavior on Firefox 3.0.1 but not Microsoft IE 7.0(.5730.11).

Looking at the source code for the generate search (of 'reshape') you
get the relative URL:

../../../library/R.utils/html/wrap.array.html

for both browsers.  The difference is that the "current URL" is
different for the two:

Firefox: file:///C:/PROGRA~1/R/R-2.7.1pat/doc/html/index.html
MSIE: C:\Program Files\R\R-2.7.1pat\doc\html\search\SearchEngine.html

Applying the relative URL to the two you get incorrect URL for Firefox:

Firefox: file:///C:/PROGRA~1/R/R-2.7.1pat/doc/html/../../../library/R.utils/html/wrap.array.html
== file:///C:/PROGRA~1/R/R-2.7.1pat/../library/R.utils/html/wrap.array.html
== file:///C:/PROGRA~1/R/library/R.utils/html/wrap.array.html

MSIE: C:\Program
Files\R\R-2.7.1pat\doc\html\search\../../../library/R.utils/html/wrap.array.html
== C:\Program Files\R\R-2.7.1pat\doc\/../library/R.utils/html/wrap.array.html
== C:\Program Files\R\R-2.7.1pat\library/R.utils/html/wrap.array.html

So, it seems that the "current URL" for the search result is incorrect
for Firefox, i.e. a missing search/ directory.

My $.02

Henrik

On Wed, Jul 16, 2008 at 7:27 PM, Jan Smit <smit1 at un.org> wrote:
> I am using R 2.7.1 under Windows XP, installed at C:/R/R-2.7.1.
>
> The location of the HTML SearchEngine is
> file:///C:/R/R-2.7.1/doc/html/search/SearchEngine.html. Now, when I type a
> phrase, say "reshape", in the search text field, the Search Results page
> suggest that the location of the reshape HTML help file is
> file:///C:/R/library/stats/html/reshape.html, while in reality it is
> file:///C:/R/R-2.7.1/library/stats/html/reshape.html.
>
> Is there an easy way in which I can fix this?
>
> --
> Jan Smit
> Statistics Division
> United Nations
> Economic and Social Commission for Asia and the Pacific (ESCAP)
> Rajdamnern Nok Avenue
> Bangkok 10200, Thailand
> Tel: +66 (0) 2288 1689
> Fax: +66 (0) 2288 1082
> http://www.unescap.org/stat/index.asp
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list