Open jrosen48 opened 6 years ago
Thx for taking the Rmd for a spin (or a knit :-) and also taking time to post an issue/questions!
Aye. And I likely shld have noted it far better than I did. Rather than duplicate the (albeit not really easy to find gh
docs), take a look here for how to get the token in your environment. https://github.com/r-lib/gh/blob/eecde016754be7769f6f401deb39cc90f3ac7cdd/R/gh_whoami.R
I've now noted this in the README and in the first Rmd comment snippet. If you do try it again and it works, I'll close the issue.
Thank you! If I understand correctly, I need to get an API key in my environment by running the gh_whoami()
function. When I did this the following error was returned:
> gh::gh_whoami()
No personal access token (PAT) available.
Obtain a PAT from here:
https://github.com/settings/tokens
For more on what to do with the PAT, see ?gh_whoami.
I navigated to https://github.com/settings/tokens
and generated a token - and then used it in as follows:
gh::gh_whoami([TOKEN])
(I get the sense I'm completely missing the point of what this function does, which is to automatically generate a token.)
When I run the above chunk again, the following error is returned:
Error in map(.x, .f, ...) : object 'public_repos' not found
Thank you again for the help. I can hop over to gh
, but if I might ask for one more tip on how I can get the token in my environment - now I really want for this to work.
Thanks!
When I run the following code in the
github_repos
chunk:The following error is returned:
I checked on a few ways to authenticate but could not find out how to authenticate with GitHub. Is there a separate step (through GitHub - or locally) that needs to be done before running this?
Thank you for sharing this awesome resource!