From th|erry@onke||nx @end|ng |rom |nbo@be  Fri Sep  6 16:48:00 2019
From: th|erry@onke||nx @end|ng |rom |nbo@be (Thierry Onkelinx)
Date: Fri, 6 Sep 2019 16:48:00 +0200
Subject: [Rd] Cryptic error message from namespaceExport
Message-ID: <CAJuCY5yZe=T=kn0dbwTi=aLNJnfgrGWBo8n0yCH+RY23fBh5ug@mail.gmail.com>

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 imports functions from the INLA package. Older versions
of the INLA package did not export the "inla" class. Hence the use of
setOldClass().
The current version of the INLA package does export the "inla" class
through it NAMESPACE. This triggered the error described above.

Is the possible to improve this error message? The current message is
misleading as neither packages contain the string ".__C__inla"

Best regards,

ir. Thierry Onkelinx
Statisticus / Statistician

Vlaamse Overheid / Government of Flanders
INSTITUUT VOOR NATUUR- EN BOSONDERZOEK / RESEARCH INSTITUTE FOR NATURE AND
FOREST
Team Biometrie & Kwaliteitszorg / Team Biometrics & Quality Assurance
thierry.onkelinx at inbo.be
Havenlaan 88 bus 73, 1000 Brussel
www.inbo.be

///////////////////////////////////////////////////////////////////////////////////////////
To call in the statistician after the experiment is done may be no more
than asking him to perform a post-mortem examination: he may be able to say
what the experiment died of. ~ Sir Ronald Aylmer Fisher
The plural of anecdote is not data. ~ Roger Brinner
The combination of some data and an aching desire for an answer does not
ensure that a reasonable answer can be extracted from a given body of data.
~ John Tukey
///////////////////////////////////////////////////////////////////////////////////////////

<https://www.inbo.be>

	[[alternative HTML version deleted]]



[Rd] Cryptic error message from namespaceExport
Thierry Onkelinx