set one or more units global options
set units global options, mostly related how units are printed and plotted
units_options(..., sep, group, negative_power, parse, set_units_mode, auto_convert_names_to_symbols, simplify, allow_mixed, unitless_symbol, define_bel)
... |
named options (character) for which the value is queried |
sep |
character length two; default |
group |
character length two; start and end group, may be two empty strings, a parenthesis pair, or square brackets; default: square brackets. |
negative_power |
logical, default |
parse |
logical, default |
set_units_mode |
character; either |
auto_convert_names_to_symbols |
logical, default |
simplify |
logical, default |
allow_mixed |
logical; if |
unitless_symbol |
character; set the symbol to use for unitless (1) units |
define_bel |
logical; if |
This sets or gets units options. Set them by using named arguments, get them by passing the option name.
in case options are set, invisibly a named list with the option values that are being set; if an option is queried, the current option value.
old = units_options(sep = c("~~~", "~"), group = c("", "")) # more space, parenthesis old ## set back to defaults: units_options(sep = c("~", "~"), group = c("[", "]"), negative_power = FALSE, parse = TRUE) units_options("group")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.