set_startup_options: Set Nice Startup Options Sets nicer options. All arguments...

View source: R/startup_options.r

set_startup_optionsR Documentation

Set Nice Startup Options Sets nicer options. All arguments are passed to the options function. This function also sets ipck = TRUE in rc.settings.

Description

Set Nice Startup Options

Sets nicer options. All arguments are passed to the options function. This function also sets ipck = TRUE in rc.settings.

Usage

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,
  print.data.table.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)),
  ...
)

Arguments

digits

Default 4

bitmapType

Default "cairo".

show.signif.stars

Default FALSE

useFancyQuotes

Default FALSE

width

Default 100

Ncpus

Default number of CPUs - 1. Used for parallel pkg installs.

max.print

Default 100 to avoid blow up

servr.daemon

Default TRUE. For xaringan presentations

max

Default 10. For List printing

mc.cores

Default number of CPUs - 1. Used for parallel computing

error

Default rlang. If rlang is installed, then error = rlang::entrace.

menu.graphics

Default FALSE. Logical: should graphical menus be used if available?

continue

Default ... . Set the prompt used for lines which continue over one line.

warnPartialMatchArgs

Default TRUE. Warn if using partial arguments.

warnPartialMatchDollar

= Default TRUE. Warns if partial matching is used for extraction by $.

warnPartialMatchAttr

= Default TRUE. Warns if partial matching is used to extract attributes via attr.

nwarnings

= 1e6,

scipen

Default 999. Always print out full numbers, i.e. not 1e2

print.data.table.class

Default TRUE. Always print data.table column class.

browser

Default xdg-open. Browser to open http help documents.

HTTPUserAgent

Used by RStudio Package Manager (RSPM).

download.file.extra

Used by RSPM for curl/wget installs, e.g. Rscript.

...

Other arguments passed to options.


lukehannan/lumisc documentation built on May 9, 2022, 12:59 p.m.