Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wes.palette does not work when package not attached #4

Open
richfitz opened this issue Jun 11, 2014 · 2 comments
Open

wes.palette does not work when package not attached #4

richfitz opened this issue Jun 11, 2014 · 2 comments

Comments

@richfitz
Copy link

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.

@karthik
Copy link
Owner

karthik commented Jun 11, 2014

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:
#4

@MichaelChirico
Copy link

MichaelChirico commented Jan 30, 2020

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")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants