hughjonesd / huxtable

An R package to create styled tables in multiple output formats, with a friendly, modern interface.
http://hughjonesd.github.io/huxtable
Other
322 stars 28 forks source link

insert_row() removes caption() #160

Closed hughjonesd closed 4 years ago

hughjonesd commented 4 years ago

Describe the bug

After insert_row() at the first row, caption becomes unset. The same holds for insert_column().

Minimal Reproducible Example

hux(1) %>% set_caption("A caption") %>% insert_row("hi") %>% caption()

Expected behavior

Caption should remain set. This is going to be a function of the way the rbind() works

System details

Huxtable 5.0.0