Skip to content

Commit

Permalink
git
Browse files Browse the repository at this point in the history
  • Loading branch information
jinseob2kim committed Feb 18, 2022
1 parent 9fbcc47 commit 0863908
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions code/github.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,8 @@
usethis::create_github_token()
## in case usethis version < 2.0.0: usethis::browse_github_token() (or even better: update usethis!)

## 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
## copy and paste your token and press enter
gitcreds::gitcreds_set()

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

Expand All @@ -44,4 +39,5 @@ usethis::git_sitrep()
## 'Personal access token: '<found in env var>''

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

## THAT'S IT!

0 comments on commit 0863908

Please sign in to comment.