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

From: Uwe Ligges <>
Date: Tue, 30 Aug 2011 20:35:07 +0200

On 30.08.2011 19:52, Hadley Wickham wrote:
>>> 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?
>> This is expected. The data object is not exported from the Namespace and
>> hence not loaded if a reference to the Namespace is made without *attaching*
>> the package. Hence data(..., package=...) is the way to go.
> So how should I include package local data? The dataset is only used
> internally by munsell functions (it's basically a big lookup table)
> and should not be available to the user - i.e. it should not be
> exported. This, I thought, was the purpose of sysdata.rda.
> Hadley

Now I understand you are referring to the special name "sysdata.rda" that is not to be loaded via data() - I thought you were talking about the regular data including process.
That works fine for me as well and then this special data are available when the Namespace is loaded already. Have you put that file into package/R rather than package/data? Which R version?

Uwe mailing list Received on Tue 30 Aug 2011 - 18:37:39 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 Wed 31 Aug 2011 - 10:50:26 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive