[R-pkg-devel] Help with Devtools Error

Joris Meys Joris.Meys at ugent.be
Fri Oct 20 13:14:12 CEST 2017


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:

> 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:
>
> > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> > ### Name: PlotMDS
> > ### Title: PlotMDS
> > ### Aliases: PlotMDS
> > ### Keywords: ~kwd1 ~kwd2
> >
> > ### ** Examples
> >
> > PlotMDS()
> 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:
>
> > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> > ### Name: PlotMDS
> > ### Title: PlotMDS
> > ### Aliases: PlotMDS
> > ### Keywords: ~kwd1 ~kwd2
> >
> > ### ** Examples
> >
> > PlotMDS()
> 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.*
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-package-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>



-- 
Joris Meys
Statistical consultant

Ghent University
Faculty of Bioscience Engineering
Department of Mathematical Modelling, Statistics and Bio-Informatics

tel : +32 9 264 59 87
Joris.Meys at Ugent.be
-------------------------------
Disclaimer : http://helpdesk.ugent.be/e-maildisclaimer.php

	[[alternative HTML version deleted]]



More information about the R-package-devel mailing list