[R] vague errors on R CMD check for very minimal S4-style package

Seth Falcon sfalcon at fhcrc.org
Tue Jun 6 23:21:35 CEST 2006


"Roels, Steven" <Steven.Roels at mpi.com> writes:

> Hello,
>
> I have a very minimal package "simplepkg" (DESCRIPTION, NAMESPACE, and
> R) with S4 classes/methods (defines a class "foo" and a show method for
> that class" - both the class and show method are exported).  I can
> seemingly install the package, then load and use it:
>
> Error: package/namespace load failed for 'simplepkg'
> Call sequence:
> 2: stop(gettextf("package/namespace load failed for '%s'",
> libraryPkgName(package)), 
>        call. = FALSE, domain = NA)
> 1: library(package, lib.loc = lib.loc, character.only = TRUE, verbose =
> FALSE)
> Execution halted

>
> Here are the file contents:
> -------------------------------
>
> sun890% cat DESCRIPTION
> Package: simplepkg
> Type: Package
> Title: Does stuff
> Version: 0.1-1
> Date: 2006-06-06
> Author: Me
> Maintainer: Also Me <me at here.com>
> Description: Does interesting stuff
> License: GPL

Try adding LazyLoad: yes to DESCRIPTION (or SaveImage: yes).



More information about the R-help mailing list