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

Laurent Gautier lgautier at gmail.com
Sun Aug 26 19:07:42 CEST 2012


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
>



More information about the R-devel mailing list