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

2011-08-31 Thread Hadley Wickham
>> Yes, sysdata.rda is in package/R - source code available here: >> https://github.com/cwickham/munsell/tree/master/R > > I think the problem was you weren't using the github code.  When I install > it, I don't get the error.  I only get it from the CRAN version of the > package, which had the mun

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

2011-08-31 Thread Duncan Murdoch
On 11-08-30 8:41 PM, Hadley Wickham wrote: 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? Yes, sysdata.rda is in package/R - source code available here

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

2011-08-30 Thread Hadley Wickham
> 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? Yes, sysdata.rda is in package/R - source code available here: https://github.com/cwickham/munsell/tr

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

2011-08-30 Thread Uwe Ligges
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 sur

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

2011-08-30 Thread Hadley Wickham
>> 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

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

2011-08-30 Thread Uwe Ligges
On 30.08.2011 18:59, Duncan Murdoch wrote: 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 ex

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

2011-08-30 Thread Duncan Murdoch
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 l

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

2011-08-30 Thread Hadley Wickham
> 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 directo

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

2011-08-30 Thread Yihui Xie
I struggled with this for a while too, and I have no idea why this data object is unavailable. Finally I found this can do the trick: data(munsell_map, package = "munsell") munsell::mnsl("10B 4/6") ## works But I still cannot understand this. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web:

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

2011-08-30 Thread Hadley Wickham
Bump. Any comments on this? Hadley On Tue, Aug 16, 2011 at 10:53 AM, Hadley Wickham wrote: > Hi all, > > I'm struggling with accessing a package dataset (munsell.map, stored > in sysdata.rda) when that package is imported, not required.  A simple > reproducible example is: > > install.packages("

[Rd] sysdata.rda, namespaces and package dependencies

2011-08-16 Thread Hadley Wickham
Hi all, I'm struggling with accessing a package dataset (munsell.map, stored in sysdata.rda) when that package is imported, not required. A simple reproducible example is: install.packages("munsell") munsell::mnsl("10B 4/6") # Error in match(col, munsell.map$name) : object 'munsell.map' not foun