Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

When should getOption("github.username") be checked? #67

@sboysel

Description

@sboysel

For example, the error for gists(what = "mineall") is somewhat cryptic until you realize the github.username is unset

> library(gistr)
> gist_auth()
<request>
Headers:
* Authorization: token abcdefghijklmnopqrstuvwxyz0123456789
> gists(what = "mineall")
Error: length(url) == 1 is not TRUE 

#66 encourages the user to manually set the option if gists(what = "mineall") is run when unset.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions