Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Open
Labels
@lindsayplatt

Description

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?

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

        AltStyle によって変換されたページ (->オリジナル) /