Re: [Rd] Cryptic error message from namespaceExport

2019-09-21 Thread Michael Lawrence via R-devel
Thanks. The error message will now say: undefined exports: class inla Will check-in after running more tests. On Fri, Sep 6, 2019 at 10:19 AM Thierry Onkelinx wrote: > Dear Michael, > > my package has setOldClass("inla") and the NAMESPACE > contains exportClasses(inla) and importFrom(INLA, in

Re: [Rd] Cryptic error message from namespaceExport

2019-09-06 Thread Thierry Onkelinx via R-devel
Dear Michael, my package has setOldClass("inla") and the NAMESPACE contains exportClasses(inla) and importFrom(INLA, inla.posterior.sample) the old version of INLA uses the S3 class "inla" but does not export it. the new version of INLA has setOldClass("inla") and the NAMESPACE contains exportCla

Re: [Rd] Cryptic error message from namespaceExport

2019-09-06 Thread Michael Lawrence via R-devel
Just to clarify, your package is exporting a class that is not defined? Or is it exporting a class that is defined by a dependency and then masked by setOldClass()? A simple reproducible example would help. On Fri, Sep 6, 2019 at 7:48 AM Thierry Onkelinx via R-devel wrote: > > Dear all, > > Today

[Rd] Cryptic error message from namespaceExport

2019-09-06 Thread Thierry Onkelinx via R-devel
Dear all, Today I got this error message (R 3.6.1) when installing my package: Error: package or namespace load failed for ‘inlatools’ in namespaceExport(ns, exports): undefined exports: .__C__inla My package was using setOldClass("inla") and exported the "inla" class via the NAMESPACE. It impo