Skip to content

Commit

Permalink
update usethis recs
Browse files Browse the repository at this point in the history
  • Loading branch information
nhejazi committed Sep 19, 2024
1 parent 1b2dbf0 commit 2e33a1e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions 02-tlverse.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ interactive. You need to install `R` before you install RStudio.
distributions, you could use your package manager (e.g., for Debian/Ubuntu run
`sudo apt-get install r-base`, and for Fedora `sudo yum install R`), but we
don't recommend this approach as the versions provided by this are
usually out of date. In any case, make sure you have the most recent version
usually out of date. In any case, make sure you have the most recent version
of `R`.
* Go to the [RStudio download
page](https://www.rstudio.com/products/rstudio/download/#download)
Expand Down Expand Up @@ -265,15 +265,15 @@ Error: HTTP error 403.
Rate limit reset at: 2019-03-04 19:39:05 UTC
To increase your GitHub API rate limit
- Use `usethis::browse_github_pat()` to create a Personal Access Token.
- Use `usethis::create_github_token()` to create a Personal Access Token.
- Use `usethis::edit_r_environ()` and add the token as `GITHUB_PAT`.
```

This just means that `R` tried to install too many packages from GitHub in too
short of a window. To fix this, you need to tell `R` how to use GitHub as your
user (you'll need a GitHub user account). Follow these two steps:

1. Type `usethis::browse_github_pat()` in your `R` console, which will direct
1. Type `usethis::create_github_token()` in your `R` console, which will direct
you to GitHub's page to create a New Personal Access Token (PAT).
2. Create a PAT simply by clicking "Generate token" at the bottom of the page.
3. Copy your PAT, a long string of lowercase letters and numbers.
Expand All @@ -294,7 +294,7 @@ user (you'll need a GitHub user account). Follow these two steps:

```{r renviron-example, results="asis", eval=FALSE}
GITHUB_PAT=yourPAT
```

8. Restart R. You can restart `R` via the drop-down menu on RStudio's "Session"
Expand Down

0 comments on commit 2e33a1e

Please sign in to comment.