metrumresearchgroup / pmtables

TeX tables for pharmacometrics.
https://metrumresearchgroup.github.io/pmt-book
11 stars 1 forks source link

Feature/align span #261

Closed kylebaron closed 2 years ago

kylebaron commented 2 years ago

Pass along alignment when rendering spanner. I wouldn't use it in this case, but have been seeing some geometries that look weird but improved when the columns and span title are left aligned.

Default is c; also accepts r

library(pmtables)

data <- stdata()

st_new(data) %>%
  st_span("On the left", WT:SCR, align = 'l') %>% 
  stable() %>% 
  st2report()
Screen Shot 2022-03-14 at 12 50 54 AM