-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2274ae4
commit f7b64f5
Showing
1 changed file
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
# ---------------------------------------------------------------------------- | ||
|
||
|