Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

github API limits #58

Open
mbergins opened this issue Jul 12, 2022 · 0 comments
Open

github API limits #58

mbergins opened this issue Jul 12, 2022 · 0 comments

Comments

@mbergins
Copy link
Member

I wanted to make a note of this in the repository in case any of the other instructors notice this, but several of our students hit a github API limit when we had them run install_github command:

`> devtools::install_github("How-to-Learn-to-Code/rclass", build_opts = "", dependencies = TRUE)
Error: Failed to install 'unknown package' from GitHub:
HTTP error 403.
API rate limit exceeded for 34.203.76.245. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)

Rate limit remaining: 0/60
Rate limit reset at: 2022-07-12 14:52:51 UTC

To increase your GitHub API rate limit

  • Use usethis::create_github_token() to create a Personal Access Token.
  • Use usethis::edit_r_environ() and add the token as GITHUB_PAT
    `

I'm guessing there is no way around this short of having the students preload the package for the vignettes or paying github. My solution was to compile the first lesson to PDF and email it out. At the end of class we then had the few students that got caught by the API limit run the command again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant