-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.Rprofile
53 lines (48 loc) · 1.74 KB
/
.Rprofile
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
50
51
52
53
# comment comment comment
local({
r <- getOption("repos")
r <- r[!names(r) %in% c("RSPM", "CRAN")]
on_mac <- Sys.info()[["sysname"]] == "Darwin"
r <- c(
if (!on_mac) RSPM = "https://packagemanager.posit.co/all/__linux__/jammy/latest",
CRAN = "https://cran.rstudio.com/",
hubverse = "https://hubverse-org.r-universe.dev",
r)
# Set the default HTTP user agent
HUA = sprintf("R/%s R (%s)",
getRversion(),
paste(getRversion(), R.version["platform"], R.version["arch"], R.version["os"])
)
auth <- paste(
'person("Zhian N.", "Kamvar",',
'email = "[email protected]",',
'role = c("aut", "cre"),',
'comment = c(ORCID = "0000-0003-1458-7108"))'
)
# Github Personal Access Token. Download the token into a plaintext file
# called ~/.github_pat and set the permissions to read only by your user
# fs::file_chmod("~/.github_pat", "600")
if (file.exists("~/.github_pat")) {
Sys.setenv(GITHUB_PAT = readLines("~/.github_pat")[[1]])
}
me <- eval(parse(text = paste0('utils::', auth)))
my_name <- format(me, c('given', 'family'))
my_email <- format(me, c('email'), braces = list(email = ''))
desc <- list(
`Authors@R` = auth,
License = "MIT + file LICENSE",
Version = "0.0.0.9000"
)
# Setting options ------------------------------------------------------------
options(repos = r)
options(HTTPUserAgent = HUA)
options(editor = "nvim")
options(reprex.html_preview = FALSE)
options(usethis.full_name = my_name)
options(usethis.description = desc)
options(usethis.protocol = "https")
options(testthat.progress.max_fails = Inf)
options(blogdown.author = my_name)
options(blogdown.subdir = "post")
options(blogdown.new_bundle = TRUE)
})