metrumresearchgroup / pmtables

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

Better error message when span isn't the right type #239

Open kylebaron opened 3 years ago

kylebaron commented 3 years ago

Summary

As a user, I ....

pt_demographics(
  pmt_first,
  cols_cont = "WT,AGE,SCR,AST,ALT,CRCL,AAG,HT,ALB",
  cols_cat = "SEXf,RFf,CPf,FORMf,ASIANf",
  span = c(Study = "STUDY"),
  table = tab
)
Error: `f` must be a factor (or character vector).