Description Usage Arguments Value Author(s) See Also Examples
This function gets the value associated with an individual declaration within a CSS rule set.
1 | getDeclaration(x, what, default = NA, simplify = TRUE)
|
x |
the |
what |
character giving the name of the property of interest, e.g. "color", "background-color", "padding", "font-family" |
default |
the value to return if there is no declaration for the specified property |
simplify |
a logical value indicating whether to return the value as a scalar if there is just one single value and not a list of values. |
Either a scalar value or a list of values, or the value of
default
if the CSS rule set does not have a declaration
for the specified property.
Duncan Temple Lang
1 2 | css = readCSS( system.file("samples", "OmegaTech.css", package = "RCSS"))
sapply(css, getDeclaration, "color", NA)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.