From murdoch.duncan at gmail.com  Wed Aug  3 15:09:11 2011
From: murdoch.duncan at gmail.com (Duncan Murdoch)
Date: Wed, 03 Aug 2011 09:09:11 -0400
Subject: [Rd] Front ends handling help.search() results?
In-Reply-To: <201108031132.45533.thomas.friedrichsmeier@ruhr-uni-bochum.de>
References: <4E32F7E3.4080604@gmail.com>
	<201107311634.55821.thomas.friedrichsmeier@ruhr-uni-bochum.de>
	<4E369624.7090208@gmail.com>
	<201108031132.45533.thomas.friedrichsmeier@ruhr-uni-bochum.de>
Message-ID: <4E394877.4090402@gmail.com>

On 03/08/2011 5:32 AM, Thomas Friedrichsmeier wrote:
> On Monday 01 August 2011, Duncan Murdoch wrote:
> >  I've just committed the changes to R-devel.  Let me know if there is
> >  anything worse than what I described.
>
> Well, you did not give detail on that, but I was surprised about the "topic"
> field for vignettes. Here (on a Debian/Linux system), for some vignettes,
> "topic" contains a file path, which - I guess - may have been used during
> installation of the package, but is no longer present on my system. E.g:
>
>    topic
>    "/tmp/RtmpMQhWJi/R.INSTALL494a2adb/AnnotationDbi/inst/doc/AnnotationDbi"
>    title
>    "AnnotationDbi: How to use the \".db\" annotation packages"
>    Package
>    "AnnotationDbi"
>
> I would expect the "topic" field to always contain a string suitable for use as
> the "topic" parameter in vignette(). For some other vignettes() found by
> help.search() this is is working. I did not figure out a pattern, so far.

I have fixed that one, will commit soon.
> Besides that, while testing, I found that the dynamic help fails to display
> the result of
>    help.search ("grid")
> with this message:
>    Error in .HTMLsearch(query) :
>    number of items to replace is not a multiple of replacement length
> I note that in the matches of that query, several vignettes are listed twice.
> This probably indicates a problem in my installation, but may still be worth
> fixing.

I can't reproduce this.  Can you get any more detail, e.g. by setting 
options(error=recover) or similar?  Vignettes listed twice sounds as 
though you may have two copies of grid installed in your .libPath(), but 
that shouldn't happen for a base package.  I'll see what happens if I do 
it for a contributed package.

Duncan Murdoch



[Rd] Front ends handling help.search() results?
Duncan Murdoch