generated from berkeley-dsep-infra/hub-user-image-template
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Rprofile.site
23 lines (22 loc) · 875 Bytes
/
Rprofile.site
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Use RStudio's CRAN mirror to get binary packages. "latest" just means it has
# all available versions. We can specify version numbers in
# devtools::install_version.
options(
repos = c(
CRAN = "https://packagemanager.rstudio.com/all/__linux__/jammy/latest"
)
)
# RStudio sets the HTTPUserAgent option which causes it to download binaries,
# rather than source, from the Posit Public Package Manager. In order for the
# RStudio terminal, Jupyter terminal, Jupyter R notebook, or anything else to
# do the same, we must manually set HTTPUserAgent. This speeds up package
# installation.
# We fake rstudio version because `RStudio.Version()$version` is only available
# when we are in RStudio.
options(
HTTPUserAgent = sprintf(
"RStudio Server (%s); R (%s)",
"2024.04.2.764",
paste(getRversion(), R.version$platform, R.version$arch, R.version$os)
)
)