-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRprofile.site
30 lines (26 loc) · 929 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
24
25
26
27
28
29
30
# prevent "Registered S3 method overwritten" messages
Sys.setenv(`_R_S3_METHOD_REGISTRATION_NOTE_OVERWRITES_` = "false")
options(
# Prevent coursekata start up messages
coursekata.quickstart = TRUE,
# Add R mimetype to specify how the plot returns from R to the browser.
# https://notebook.community/andrie/jupyter-notebook-samples/Changing%20R%20plot%20options%20in%20Jupyter # nolint
jupyter.plot_mimetypes = c(
"text/plain", # plot description, always keep
"image/png"
),
## add a default CRAN mirror and download method
repos = c(CRAN = "${CRAN}"),
download.file.method = "libcurl",
# set HTTPUserAgent for RSPM (https://docs.rstudio.com/rspm/admin/serving-binaries/#binaries-r-configuration-linux) # nolint
HTTPUserAgent = sprintf(
"R/%s R (%s)",
getRversion(),
paste(
getRversion(),
R.version["platform"],
R.version["arch"],
R.version["os"]
)
)
)