github_test_token` checks if a token is valid by attempting to authenticate with the GitHub api.
github_test_token(token = github_get_token())
github api personal access token
# NOT RUN {
github_test_token()
github_test_token("bad_token")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab