[Rd] NAMESPACES for data only packages

Joshua Wiley jwiley.psych at gmail.com
Tue Nov 8 18:49:21 CET 2011


Hi Michael,

You are correct that data does not *have* to be exported.  For
example, here is the contents of NAMESPACE for the datasets package
from a recent devel version:

# This package exports nothing (it uses lazydata)
# exportPattern(".")

Cheers,

Josh

On Tue, Nov 8, 2011 at 9:11 AM, Michael Friendly <friendly at yorku.ca> wrote:
> the NEWS file for R-devel says
>
>  *
>
>    Even data-only packages without *R* code need a namespace and so may
>    need to be installed under *R* 2.14.0 or later.
>
>
> but what should this contain?  Can it simply be an empty NAMESPACE
> file?  I assume that data does not have to
> be exported.
>
> -Michael
>
> --
> Michael Friendly     Email: friendly AT yorku DOT ca
> Professor, Psychology Dept.
> York University      Voice: 416 736-5115 x66249 Fax: 416 736-5814
> 4700 Keele Street    Web:   http://www.datavis.ca
> Toronto, ONT  M3J 1P3 CANADA
>
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



-- 
Joshua Wiley
Ph.D. Student, Health Psychology
Programmer Analyst II, ATS Statistical Consulting Group
University of California, Los Angeles
https://joshuawiley.com/



More information about the R-devel mailing list