# Basic styling
style_vector(c("Hello", "World"), bold = TRUE, color = "red")
# Different styles per element
style_vector(
c("Bold text", "Italic text", "Monospace"),
bold = c(TRUE, FALSE, FALSE),
italic = c(FALSE, TRUE, FALSE),
monospace = c(FALSE, FALSE, TRUE)
)
# Single style applied to all elements
style_vector(c("A", "B", "C"), color = "blue", fontsize = 1.2)
Run the code above in your browser using DataLab