Skip to content

R CMD check barfs at 'suggested' package

2 messages · Alexander Ploner, Brian Ripley

#
R never reloads a package if not asked to, and it is usually users (not R) 
who `get confused'.

Specifying Suggests: multtest just tells 'check' that it needs to be 
available: it does not tell R to load it.  (It also tells install.packages 
enough to install it if you asked for dependencies to be installed.)

This appears to stem from an error in multtest.  The example-checking 
tests (and not R generically) do try to reset the environment after each 
example, and that includes detaching packages that the example caused to 
be loaded.  Detaching a package does not unload its DLL, but a package's 
.Last.lib can do so.  However, multtest does so incorrectly, via a call to 
dyn.unload not library.dynam.unload.

Namespaces will not help as multtest does not have one (at least in the 
version I looked at).

I suggest R-devel would be a better list for questions about developing 
packages.  (But for now please take this up with multtest maintainer.)
On Wed, 1 Feb 2006, Alexander Ploner wrote: