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

Dirk Eddelbuettel edd at debian.org
Sun Aug 26 18:32:33 CEST 2012


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.

Dirk

-- 
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com



More information about the R-devel mailing list