[Rcpp-devel] namespace error
soeren.vogel at uzh.ch
soeren.vogel at uzh.ch
Sat Jun 4 14:53:39 CEST 2011
On 02.06.2011, at 22:51, Laurent Gatto wrote:
> On 2 June 2011 20:39, <soeren.vogel at uzh.ch> wrote:
>> On 02.06.2011, at 18:50, Dirk Eddelbuettel wrote:
>>
>>> On 2 June 2011 at 18:37, soeren.vogel at uzh.ch wrote:
>>>
>>> When R CMD CHECKing the package, I repeatedly get the error:
>>> |
>>> | Error: .onLoad failed in loadNamespace() for 'GUTS', details:
>>> | call: value[[3L]](cond)
>>> | error: failed to load module mod_guts from package GUTS
>>> | 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.
>
> You have good chances to get rid of it using the latest svn version of Rccp:
Thanks for the advice. Unfortunately, it doesn't work. I've downloaded and installed the latest version, made an Rcpp.package.skeleton("Foo", module=TRUE), and run R CMD CHECK Foo, resulting on a slightly different but still persistent warning:
** checking whether the name space can be loaded with stated dependencies ... WARNING
Error: .onLoad failed in loadNamespace() for 'Foo', details:
call: value[[3L]](cond)
error: failed to load module yada from package Foo
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.
However, the package works and I think a solution is not urgent.
*S*
More information about the Rcpp-devel
mailing list