Hooks, docs [was [Rd] Multiple options for a package]

Simon Urbanek simon.urbanek at math.uni-augsburg.de
Tue Dec 14 16:16:52 CET 2004


thanks for the useful hints! In fact, that code features several 
interesting techniques.
While reading one of the related docs I stumbled upon a slight problem 
in the UserHooks {base} docs:

pkgname character string: the package/namespace name. If versioned 
install has been used, pkgname should the unversioned name of the 
package and any version information will be stripped.

The last sentence doesn't make too much sense to me - either there's a 
verb missing after the "should" or it should go away altogether 
(depending on what was really meant ...) or there's a better way to put 

... and since we're talking about hooks - is there some standard as of 
what custom hook names should look like? Or maybe the hook parameters? 
(I noticed the one used in grid doesn't supply any parameters at 
all...) And finally how should hooks be documented (or the other way 
round - how does one look for hook documentation)?


On Dec 14, 2004, at 8:30 AM, Prof Brian Ripley wrote:

> I also don't see why you need to save options to file _within a 
> session_, and the R testing framework does not do so -- take a look at 
> what massage-examples does.  But if you do save options, remember that 
> some are read-only.  I think you would find .readRDS and allies (see 
> the help page) more convenient.

More information about the R-devel mailing list