[Bioc-devel] check failure: prerequisit package does not use NAMESPACE
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'")