Description Usage Arguments Value Examples
These functions check that units are legitimate CSS/LaTeX units, then
call units::set_units().
1 2 3 4 5 6 7 | set_css_units(x, value, ..., mode = units_options("set_units_mode"))
set_latex_units(x, value, ..., mode = units_options("set_units_mode"))
css_units(x) <- value
latex_units(x) <- value
|
x, value, ..., mode |
See |
An object of class units. Throws an error if the unit specification is not recognized.
1 2 3 4 5 6 7 8 9 10 11 12 13 | unloadNamespace("cssunits")
unloadNamespace("units")
library(cssunits)
install_css_units()
set_css_units(1, "px", mode = "standard")
set_css_units(1, px)
# catching errors:
try(set_css_units(1, pox))
x <- 1:3
css_units(x) <- "px"
x
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.