Skip to content

[R-pkg-devel] Help with Devtools Error

3 messages · Adrian Cunningham, Thierry Onkelinx, Joris Meys

#
Hello,


I hope that this email finds you all well. Any help with the following
error messages that I am getting when I run devtools::check() on my
package would be greatly appreciated. I think that it is a Namespace
error - but when I try to export my function, it doesn't pass the
install check of the devtools check.

Thank you in advance!


* checking examples ...
** running examples for arch 'i386' ... ERROR
Running examples in 'MDSPlot-Ex.R' failed
The error most likely occurred in:
Error in PlotMDS() : could not find function "PlotMDS"
Execution halted
** running examples for arch 'x64' ... ERROR
Running examples in 'MDSPlot-Ex.R' failed
The error most likely occurred in:
Error in PlotMDS() : could not find function "PlotMDS"
Execution halted
* checking PDF version of manual ... OK
* DONE
Status: 2 ERRORs, 4 WARNINGs, 5 NOTEs


Best,

*Adrian Cunningham, M.A.*
#
Dear Adrian,

Answering this would be much easier when you have access to the code.

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
Kliniekstraat 25, B-1070 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
///////////////////////////////////////////////////////////////////////////////////////////


Van 14 tot en met 19 december 2017 verhuizen we uit onze vestiging in
Brussel naar het Herman Teirlinckgebouw op de site Thurn & Taxis.
Vanaf dan ben je welkom op het nieuwe adres: Havenlaan 88 bus 73, 1000 Brussel.

///////////////////////////////////////////////////////////////////////////////////////////



2017-10-20 5:38 GMT+02:00 Adrian Cunningham <adrian601 at gmail.com>:
#
Dear Adrian,

I think the problem is rather obvious: plotMDS cannot be found. So if this
is a function of your own package, you forgot to export it. If it's a
function from another package, the package isn't loaded so it should be
added as Depends, Imports or Suggests. And when added as Suggests, you need
a library() statement in your example to load the function.

But as far as I can judge from the little info you gave, exporting the
function should do it.

On Fri, Oct 20, 2017 at 5:38 AM, Adrian Cunningham <adrian601 at gmail.com>
wrote: