Skip to content

What to do with NA input to gh()? #21

Description

@jennybc

If ... in gh(endpoint, ...) contains an NA, gh() errors with this:

 Error in if (endpoint2 != endpoint) { : 
  missing value where TRUE/FALSE needed 

Obviously you'd never do that intentionally. I'm using gh() over rather long lists of (alleged) GitHub users, repos, teams, etc. and sometimes this just happens. I wonder if there's a nicer way to handle?

I'm working on another PR re: errors and will also try to propose something for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions