github_test_token` checks if a token is valid by attempting to authenticate with the GitHub api.

github_test_token(token = github_get_token())

Arguments

token

github api personal access token

Examples

if (FALSE) { github_test_token() github_test_token("bad_token") }