width(ht)
width(ht) <- value
set_width(ht, value)
value
is treated as a proportion of the surrounding block width (HTML) or text width (LaTeX). If character, it must be a valid CSS or LaTeX width. Set to NA
for the default.width
, the width
attribute.
For set_width
, the ht
object.height
ht <- huxtable(a = 1:3, b = 1:3)
width(ht) <- 0.8
width(ht)
Run the code above in your browser using DataLab