View source: R/startup_options.r
set_startup_options | R Documentation |
Sets nicer options. All arguments are passed to the options
function.
This function also sets ipck = TRUE
in rc.settings
.
set_startup_options(
digits = 4L,
bitmapType = "cairo",
show.signif.stars = FALSE,
useFancyQuotes = FALSE,
width = 88L,
Ncpus = max(1L, parallel::detectCores() - 1L),
max.print = 100L,
servr.daemon = TRUE,
max = 10L,
mc.cores = max(1L, parallel::detectCores() - 1L),
error = "rlang",
menu.graphics = FALSE,
continue = "-_- ",
warnPartialMatchArgs = TRUE,
warnPartialMatchDollar = TRUE,
warnPartialMatchAttr = TRUE,
nwarnings = 1000000,
scipen = 999L,
datatable.print.class = TRUE,
browser = "xdg-open",
HTTPUserAgent = sprintf("R/%s R (%s)", getRversion(), paste(getRversion(),
R.version$platform, R.version$arch, R.version$os)),
download.file.extra = sprintf("--header \"User-Agent: R (%s)\"",
paste(getRversion(), R.version$platform, R.version$arch, R.version$os)),
...
)
digits |
Default |
bitmapType |
Default "cairo". |
show.signif.stars |
Default |
useFancyQuotes |
Default |
width |
Default |
Ncpus |
Default number of CPUs - 1. Used for parallel pkg installs. |
max.print |
Default 100 to avoid blow up |
servr.daemon |
Default |
max |
Default |
mc.cores |
Default number of CPUs - 1. Used for parallel computing |
error |
Default |
menu.graphics |
Default |
continue |
Default |
warnPartialMatchArgs |
Default |
warnPartialMatchDollar |
= Default |
warnPartialMatchAttr |
= Default |
nwarnings |
= 1e6, |
scipen |
Default |
datatable.print.class |
Default |
browser |
Default |
HTTPUserAgent |
Used by RStudio Package Manager (RSPM). |
download.file.extra |
Used by RSPM for curl/wget installs, e.g. Rscript. |
... |
Other arguments passed to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.