Skip to content
Back to formatted view

Raw Message

Message-ID: <57641B0C.6030705@ieu.uzh.ch>
Date: 2016-06-17T15:45:16Z
From: Pascal A. Niklaus
Subject: import of data set and warning from R CMD check

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]]