[Bioc-devel] check failure: prerequisit package does not use NAMESPACE
Seth Falcon
sfalcon at fhcrc.org
Fri Sep 15 19:31:21 CEST 2006
A minor correction:
Seth Falcon <sfalcon at fhcrc.org> writes:
>
> Index: R/gaggle.R
> ===================================================================
> --- R/gaggle.R (revision 19853)
> +++ R/gaggle.R (working copy)
> @@ -2,6 +2,8 @@
> #---------------------------------------------------------------------------------
> .onLoad <- function (libname, pkgname)
> {
> + require("methods")
> + require("rJava")
Much better to check the return value and give a clear error message.
Something like:
require("methods") || stop("The methods package is missing, your R is broken")
require("rJava") || stop("unable to load package 'rJava'")
More information about the Bioc-devel
mailing list