From thomas.friedrichsmeier at ruhr-uni-bochum.de  Wed Aug  3 19:23:54 2011
From: thomas.friedrichsmeier at ruhr-uni-bochum.de (Thomas Friedrichsmeier)
Date: 3 Aug 2011 19:23:54 +0200
Subject: [Rd] Front ends handling help.search() results?
In-Reply-To: <4E394877.4090402@gmail.com>
References: <4E32F7E3.4080604@gmail.com>
	<201108031132.45533.thomas.friedrichsmeier@ruhr-uni-bochum.de>
	<4E394877.4090402@gmail.com>
Message-ID: <201108031924.00205.thomas.friedrichsmeier@ruhr-uni-bochum.de>

On Wednesday 03 August 2011, Duncan Murdoch wrote:
> I can't reproduce this.  Can you get any more detail, e.g. by setting
> options(error=recover) or similar?

Interestingly, that does not start a browser, and options(error=dump.frames) 
appears to have no effect, either. geterrmessage() does list the error, though. 
I'm not sure whether that is or is not the expected handling of errors inside 
input handlers.

Either way, I found I can trigger the error using
   tools:::httpd("/doc/html/Search", c(pattern = "grid"))
debugging from there shows that the error is on line
   vignettes[i,] <- c(pkg, unlist(vignette[,c("File", "Title", "PDF", "R")]))
At this point, "vignette" is:
                File                 Title             PDF  Depends Keywords
   1 displaylist.Rnw Display Lists in grid displaylist.pdf graphics         
   2 displaylist.Snw Display Lists in grid displaylist.pdf graphics         
                 R
   1 displaylist.R
   2 displaylist.R

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

It appears, the cause of the problem was failure to "make clean" every once in 
a while, and this resulted in installing both displaylist.Rnw and 
displaylist.Snw (into a single library location).

Regards
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <https://stat.ethz.ch/pipermail/r-devel/attachments/20110803/a5128fef/attachment.bin>


[Rd] Front ends handling help.search() results?
Thomas Friedrichsmeier