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

Pascal A. Niklaus Pascal.Niklaus at ieu.uzh.ch
Thu Jun 23 08:29:09 CEST 2016


Dear Thierry,

Thanks, that indeed solved the warning.

Still, I think the message from R CMD check is confusing since the hint 
seems not to work with the current R version.

Pascal

On 2016-06-21 11:31, Thierry Onkelinx wrote:
> 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 at ieu.uzh.ch
> <mailto:pascal.niklaus at 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
>
>



More information about the R-help mailing list