[Rd] NAMESPACES for data only packages

2011-11-08 Thread Michael Friendly
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 StreetWeb:   http://www.datavis.ca
Toronto, ONT  M3J 1P3 CANADA


[[alternative HTML version deleted]]

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] NAMESPACES for data only packages

2011-11-08 Thread Joshua Wiley
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 frien...@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@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/

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] NAMESPACES for data only packages

2011-11-08 Thread Prof Brian Ripley

Can we clarify:

As the NEWS says, to install a data-only package under 2.14.0 you need 
a namespace.  And if you do not give one installation will create one.


However, you can use an already-installed data-only package without a 
namespace under 2.14.x, but not under R-devel.  This is to allow a 
transition (e.g. many of the BioC 2.9 binary data-only packages did 
not have a namespace at the time).


On Tue, 8 Nov 2011, Joshua Wiley wrote:


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 frien...@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@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/

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel



--
Brian D. Ripley,  rip...@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel:  +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UKFax:  +44 1865 272595__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel