Re: [R] Location of HTML help files

From: Henrik Bengtsson <hb_at_stat.berkeley.edu>
Date: Wed, 16 Jul 2008 20:45:07 -0700

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.
>



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. Received on Thu 17 Jul 2008 - 03:48:01 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 17 Jul 2008 - 06:32:32 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive