From lgautier at gmail.com  Sun Aug 26 19:07:42 2012
From: lgautier at gmail.com (Laurent Gautier)
Date: Sun, 26 Aug 2012 19:07:42 +0200
Subject: [Rd] Package "datasets" not exporting anything on a recent
	R-2.15.1-patched
In-Reply-To: <20538.20385.717692.171873@max.nulle.part>
References: <503A4DEB.2090605@gmail.com>
	<20538.20385.717692.171873@max.nulle.part>
Message-ID: <503A57DE.6050204@gmail.com>

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
>



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