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

pkg.env not loaded causing match.arg error #470

Open
lindsayplatt opened this issue Mar 28, 2017 · 0 comments
Open

pkg.env not loaded causing match.arg error #470

lindsayplatt opened this issue Mar 28, 2017 · 0 comments
Labels

Comments

@lindsayplatt
Copy link

If you use a gsplot function before the library is loaded, then pkg.env is not correct, which makes allowedTypes in config.R empty.

# unhelpful match.arg error
gsplot::gsplot()
Error in match.arg(type, choices = allowedTypes) : 
  'arg' should be one of

# more useful error about not know what gsplot is
gsplot::points(gsplot(), 1,2)
Error in override("graphics", "points", object, ...) : 
  could not find function "gsplot"

Should we throw a more helpful error?

@lindsayplatt lindsayplatt changed the title pkg.env not loaded causing match.arg pkg.env not loaded causing match.arg error Mar 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant