ddsjoberg / gtsummary

Presentation-Ready Data Summary and Analytic Result Tables
http://www.danieldsjoberg.com/gtsummary
Other
1.05k stars 125 forks source link

Enforce more strict syntax in `tbl_uvregression(y=, x=)` #1084

Closed ddsjoberg closed 2 years ago

ddsjoberg commented 2 years ago

Parsing the x= and y= arguments is messy. This is due to the evolution of the function from pre-rlang/tidyeval to the more friendly tidy evaluation syntax.

I think I'd like to deprecate accepting string names for y= and x=. The issue arises with complex outcomes, like time to event: Surv(ttdeath, death), which is tricky to manage when you accept string versions and unquoted versions.

ddsjoberg commented 2 years ago

never mind :)