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

2016-06-23 Thread Pascal A. Niklaus
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")

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

2016-06-21 Thread Thierry Onkelinx
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

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

2016-06-17 Thread Pascal A. Niklaus
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'| ||