From maechler at stat.math.ethz.ch  Wed May 16 19:30:03 2007
From: maechler at stat.math.ethz.ch (Martin Maechler)
Date: Wed, 16 May 2007 19:30:03 +0200
Subject: [Rd] RFC: allow packages to advertise vignettes on Windows
In-Reply-To: <464B3697.4080302@stats.uwo.ca>
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>
	<464B3697.4080302@stats.uwo.ca>
Message-ID: <17995.16283.112884.115133@stat.math.ethz.ch>

>>>>> "Duncan" == Duncan Murdoch <murdoch at stats.uwo.ca>
>>>>>     on Wed, 16 May 2007 12:51:35 -0400 writes:

    Duncan> 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?

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

Indeed, a good idea.
For me, with quite a bit in .libPath() but on a quite fast hi-memory machine,

> system.time(v <- vignette())

   user  system elapsed 
  7.349   6.257 145.329 

i.e. elapsed time of 2.5 minutes {with > 1100 installed packages}

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

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

I agree.  I also agree with Simon that it makes sense trying to
provide as much as possible GUI-independently (and in way that is
as easily as possible "GUI-pluggable").

Martin



[Rd] RFC: allow packages to advertise vignettes on Windows
Martin Maechler