From murdoch at stats.uwo.ca  Wed May 16 18:51:35 2007
From: murdoch at stats.uwo.ca (Duncan Murdoch)
Date: Wed, 16 May 2007 12:51:35 -0400
Subject: [Rd] RFC: allow packages to advertise vignettes on Windows
In-Reply-To: <93D63BF1-4A0C-4112-A498-2333EEEC9BDB@r-project.org>
References: <m21whj2e0c.fsf@ziti.local>
	<464905A3.1010305@stats.uwo.ca>	<m2fy5y27rx.fsf@ziti.local>	<Pine.LNX.4.64.0705150745430.12894@auk.stats>	<D79875C9-6919-4D50-BF15-43EA0F2E6FD1@r-project.org>	<m2wsz9ofqe.fsf@ziti.fhcrc.org>	<5C178B61-E438-4A98-9987-DB904AC3CE75@r-project.org>	<m2lkfon5lf.fsf@ziti.fhcrc.org>
	<93D63BF1-4A0C-4112-A498-2333EEEC9BDB@r-project.org>
Message-ID: <464B3697.4080302@stats.uwo.ca>

On 5/16/2007 11:58 AM, Simon Urbanek wrote:

> Um .. I'm not quite sure I understand - all you have to do is
> v=vignette(); v$results[v$results[,1] %in% search(),]
> or am I missing something?

In the interest of avoiding duplication and speeding up the calculation, 
I'd put this into the vignette() function (e.g. add an attached=FALSE 
argument).  I suspect on a system with several hundred installed 
packages vignette(attached=TRUE) could be quite a bit faster than 
searching all packages and subsetting afterwards.

> There is one thing that could be addressed I suppose - we don't have  
> any hooks for GUIs in the sense that R cannot tell the GUI that  
> something changed (e.g. a new package was installed). Right now each  
> GUI uses system's facilities (or asynchronous checks) to learn about  
> such events. This could be unified (as well as other aspects like  
> e.g.  the menu access).

Both of these things would be really nice, but I wouldn't hold off on 
Seth's suggestion to wait for them.

Duncan Murdoch



[Rd] RFC: allow packages to advertise vignettes on Windows
Duncan Murdoch