From 2e33a1ea42639ccf62a59c4527547f2e6c3d2a8b Mon Sep 17 00:00:00 2001 From: Nima Hejazi Date: Thu, 19 Sep 2024 14:41:55 -0400 Subject: [PATCH] update usethis recs --- 02-tlverse.Rmd | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/02-tlverse.Rmd b/02-tlverse.Rmd index cb7cb8d..937f19a 100644 --- a/02-tlverse.Rmd +++ b/02-tlverse.Rmd @@ -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) @@ -265,7 +265,7 @@ 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`. ``` @@ -273,7 +273,7 @@ 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. @@ -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"