[Rcpp-devel] Namespace error
edd at debian.org
Wed Jun 15 20:57:13 CEST 2011
On 15 June 2011 at 20:07, soeren.vogel at uzh.ch wrote:
| We refer to the discussion about the namespace error, e.g., here
| And the CHECK error reads:
| Error: .onLoad failed in loadNamespace() for 'GUTS', details:
| call: value[[3L]](cond)
| error: failed to load module modguts from package GUTS
| could not find function "getClass"
| Execution halted
| A namespace must be able to be loaded with just the base namespace
| loaded: otherwise if the namespace gets loaded by a saved object, the
| session will be unable to start.
| Probably some imports need to be declared in the NAMESPACE file.
That error goes away if you add
require("methods", character=TRUE, quietly=TRUE)
in zzz.R before the call to loadRcppModules(). In SVN, we have corrected the
Rcpp.package.skeleton() function (or rather the version of zzz.R it copies).
Gauss once played himself in a zero-sum game and won $50.
-- #11 at http://www.gaussfacts.com
More information about the Rcpp-devel