inst/tinytest/test-style_vector.R

source("helpers.R")

input <- style_vector(1:2, color = c("orange", "teal"))
output <- c(
  "<span style='color:#FFA500'>1</span>",
  "<span style='color:#008080'>2</span>")
expect_equivalent(input, output)

Try the tinytable package in your browser

Any scripts or data that you put into this service are public.

tinytable documentation built on Nov. 5, 2025, 5:42 p.m.