-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWorking within Github.R
More file actions
50 lines (29 loc) · 895 Bytes
/
Copy pathWorking within Github.R
File metadata and controls
50 lines (29 loc) · 895 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# How to Use Git/GitHub with R
# from https://rfortherestofus.com/2021/02/how-to-use-git-github-with-r/
# Reference: https://happygitwithr.com/index.html
# (1) Insall Github
# (2) Check that Github has been propperly installed
# Go to terminal
# MacBookedictis2:Working-within-Github debene2$
# type: which git
# /usr/local/bin/git
# type: git --version
# git version 2.35.1
# YES! Git installation is verified
# Configure Git (Chapter 7 of Happy Git with R)
library(usethis)
edit_git_config()
# [user]
# name = Luca De Benedictis
# email = luca.debenedictis@unimc.it
use_git()
# Connect RStudio and GitHub
create_github_token()
# Git-LDB Expires on Wed, Feb 15 2023.
# username: PersonalAccessToken
# Token: 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
library(gitcreds)
gitcreds_set()
# How to Connect RStudio Projects with GitHub Repositories
# (from RStudio)
use_github()