Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
jinseob2kim committed Feb 18, 2022
1 parent 2274ae4 commit f7b64f5
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions code/github.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,17 @@

### 3. Configure git with Rstudio ############################################

## set your user name and email:
#install.packages(c("usethis", "gitcreds"))
usethis::use_git_config(user.name = "jinseob Kim", user.email = "[email protected]")

## create a personal access token for authentication:
usethis::create_github_token()
## in case usethis version < 2.0.0: usethis::browse_github_token() (or even better: update usethis!)

## Copy and paste your token and press enter
gitcreds::gitcreds_set()
## set personal access token:
credentials::set_github_pat("YourPAT")

## or store it manually in '.Renviron':
usethis::edit_r_environ()
## store your personal access token with: GITHUB_PAT=xxxyyyzzz
## and make sure '.Renviron' ends with a newline

# ----------------------------------------------------------------------------

Expand Down

0 comments on commit f7b64f5

Please sign in to comment.