wesanderson icon indicating copy to clipboard operation
wesanderson copied to clipboard

wes.palette does not work when package not attached

Open richfitz opened this issue 10 years ago • 2 comments

It is not possible to use the package without loading it:

wesanderson::wes.palette(4, "Royal1")
# Error in match(x, table, nomatch = 0L) : object 'namelist' not found

I had a quick poke, but it's not related to the LazyData field. I'm sure the answer is in writing R extensions, but I can't find it.

richfitz avatar Jun 11 '14 04:06 richfitz

Thanks for the bug report, Rich!I'll fix this in a update shortly.

On Tue, Jun 10, 2014 at 9:28 PM, Rich FitzJohn [email protected] wrote:

It is not possible to use the package without loading it:

wesanderson::wes.palette(4, "Royal1")
# Error in match(x, table, nomatch = 0L) : object 'namelist' not found

I had a quick poke, but it's not related to the LazyData field. I'm sure the answer is in

writing R extensions, but I can't find it.

Reply to this email directly or view it on GitHub: https://github.com/karthik/wesanderson/issues/4

karthik avatar Jun 11 '14 04:06 karthik

I believe this is closed already (and i think the API has changed since the original issue)

dput(wesanderson::wes_palette('Royal2', 5L))
structure(c("#9A8822", "#F5CDB4", "#F8AFA8", "#FDDDA0", "#74A089"
), class = "palette", name = "Royal2")

MichaelChirico avatar Jan 30 '20 07:01 MichaelChirico