Grokbase Groups R r-help June 2016
FAQ
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]]

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupr-help @
categoriesr
postedJun 17, '16 at 3:45p
activeJun 17, '16 at 3:45p
posts1
users1
websiter-project.org
irc#r

1 user in discussion

Pascal A. Niklaus: 1 post

People

Translate

site design / logo © 2017 Grokbase