Setup a GitHub PAT token for use in R

Опубликовано: 04 Октябрь 2024
на канале: TheCoatlessProfessor
3,245
38

First in a series on how R package creation workflows.

The video provides an overview of:

1. Install R Packages required:

In R
install.packages("devtools")

2. Join GitHub

https://github.com/join

3. Create a new GitHub PAT Token

https://github.com/settings/tokens/new

4. Setting up Renviron file to register the GitHub PAT token under the environment variable GITHUB_TOKEN.

In R
usethis::edit_r_environ()

Within the ~/.Renviron file opened type:

GITHUB_TOKEN="YOUR-PAT-TOKEN-HERE"
GITHUB_PAT="YOUR-PAT-TOKEN-HERE"