biostatsPMH / reportRx

Tools for automatically generating reproducible clinical report
Creative Commons Zero v1.0 Universal
2 stars 1 forks source link

issues in mvsum when fitting an multivariable linear regression (lm) #14

Closed egosv closed 3 years ago

egosv commented 3 years ago

I ran into the following error when using mvsum with an lm object:

"Error in FUN(X[[i]], ...) : object 'expnt' not found"

A reproducible example:

library(survival) fit <- lm(ph.karno ~ age + sex, data = lung) mvsum(fit, lung)

After looking at the code, I think this can be fixed by setting expnt = FALSE when checking for the object type (type == "lm"). There might be similar issues for other object types, however.

egosv commented 3 years ago

Noticed this was fixed in the most up-to-date devel version. Closing the issue now.