Re: [Rd] Package "datasets" not exporting anything on a recent R-2.15.1-patched

From: Laurent Gautier <lgautier_at_gmail.com>
Date: Sun, 26 Aug 2012 19:07:42 +0200

On 2012-08-26 18:32, Dirk Eddelbuettel wrote:
> On 26 August 2012 at 18:25, Laurent Gautier wrote:
> | Hi,
> |
> | I just stumbled on the following apparent oddity: the package "datasets"
> | does not appear to export anything out of its namespace:
> |
> | > ns_datasets <- getNamespace('datasets')
> | > getNamespaceExports(ns_datasets)
> | character(0)
> |
> | Not the case with other packages (example here with "utils"):
> | > ns_utils <- getNamespace('utils')
> | > head(getNamespaceExports(ns_utils))
> | [1] "?" ".DollarNames" "adist" "alarm" "apropos"
> | [6] "aregexec"
> |
> | Is this a temporary glitch, or is there something new and specific to
> | "datasets" ?
>
> Seems to be on purpose -- here is its NAMESPACE file
>
> # This package exports nothing (it uses lazydata)
> # exportPattern(".")
>
> ie nuttin' gets exported. It also has no R/ directory.

It is a pity that things are not a little more unified and objects in packages can be either in R/ (be in a namespace, exported or not, always loaded) or in data/ (always exported, optional lazy loading).

>
> Dirk
>



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Sun 26 Aug 2012 - 17:10:03 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 26 Aug 2012 - 17:10:47 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive