hi,

Am Montag, 8. August 2011, 10:49:52 schrieb Thomas Friedrichsmeier:
> RKWard currently runs installed.packages() on each session startup. When 
> many packages are installed, that can cost several seconds, esp. while the 
> disk cache is cold. Perhaps this pain could at least be shared

i just committed a small change to .rk.get.installed.packages() in svn. it 
adds two new elements to the list, one is a logical vector (whether "Enhances" 
in DESCRIPTION lists "rkward"), and the last one lists the found pluginmaps 
with full path. both entries are independent of the other, that is, the 
function does scan for a pluginmap even if there's no "Enhances: rkward" 
defined. we can see if we need/use that for anything, e.g. to highlight 
packages in the UI or so. however, in combination it's now quite easy to get 
to installed pluginmaps:

  inst.pack <- .rk.get.installed.packages()
  inst.pack$Plugins[inst.pack$EnhanceRK]
or
  inst.pack$Plugins[nchar(inst.pack$Plugins) > 0]

the whole scanning doesn't slow down the function notably.

i did two other small changes to it: i named the returned list elements (as 
seen above, which shouldn't hurt) and replaced

  library()$Title

and its checks with

  installed.packages(fields="Title")

which should give the same results in one go.


viele grüße :: m.eik

-- 
  dipl. psych. meik michalke
  abt. f"ur diagnostik und differentielle psychologie
  institut f"ur experimentelle psychologie
  heinrich-heine-universit"at d"usseldorf

Attachment: signature.asc
Description: This is a digitally signed message part.

------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
RKWard-devel mailing list
RKWard-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rkward-devel

Reply via email to