Re: [Rd] sysdata.rda, namespaces and package dependencies

From: Duncan Murdoch <murdoch.duncan_at_gmail.com>
Date: Tue, 30 Aug 2011 12:59:44 -0400

On 30/08/2011 11:27 AM, Hadley Wickham wrote:
> > Your package is doing something weird, so I think it's you: you are loading
> > the munsell.map file via "load.r" in the top level of the package. That's
> > not a standard thing to do, and it's not being executed in the first case.
> >
> > Put that load statement into one of the files in the R directory and things
> > should be fine.
>
> I think that's a red-herring - load.r is for development and is never
> run during usual package installation. Or are you saying I need to
> explicit load data stored in sysdata.rda within the package?
>

Sorry, I didn't realize you weren't executing that file. (Should it be included in the tar? That's a different issue...)

Lazy data is stored in a separate file that is loaded when library(munsell) is called. It appears it isn't being loaded when you only use munsell::mnsl to load it but not attach it. Certainly loading it from one of your .R files would work; I'm not sure if it is intentional that this is necessary or not. Perhaps someone else will comment?

Duncan Murdoch



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue 30 Aug 2011 - 17:07:49 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 Tue 30 Aug 2011 - 18:00:24 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