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.nikl...@ieu.uzh.ch <mailto:pascal.nikl...@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
______________________________________________ R-help@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.