Skip to content

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

Description

@lindsayplatt

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions