[R] import of data set and warning from R CMD check

Thierry Onkelinx thierry.onkelinx at inbo.be
Tue Jun 21 11:31:39 CEST 2016


Dear Pascal,

You could try to use data(CO2, package = "datasets") instead of data(CO2)

Best regards,

ir. Thierry Onkelinx
Instituut voor natuur- en bosonderzoek / Research Institute for Nature and
Forest
team Biometrie & Kwaliteitszorg / team Biometrics & Quality Assurance
Kliniekstraat 25
1070 Anderlecht
Belgium

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

2016-06-17 17:45 GMT+02:00 Pascal A. Niklaus <pascal.niklaus op ieu.uzh.ch>:

> Hi all,
>
> When checking an R package, I get:
>
> |Consider adding importFrom("datasets","CO2")
>
> (this data set is used in some example code)
>
> However, when I add the suggested 'importFrom' statement to NAMESPACE
> (using roxygen2), I get
> |
> |Error :object ‘CO2’ is not exported by 'namespace:datasets'|
> ||
> |I understand that datasets are not exported, and the comment printed by
> 'R CMD check' seems not to have any consequences, but it nevertheless
> seems inconsistent to me. But maybe I miss something here...
>
> Pascal
>
> |
>
> --
>
> Dr. Pascal A. Niklaus
> Department of Evolutionary Biology and Environmental Studies
> University of Zurich
> Winterthurerstrasse 190
> CH-8057 Zurich / Switzerland
>
>
> ||||
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help op r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

	[[alternative HTML version deleted]]



More information about the R-help mailing list