MSKCC-Epi-Bio / bstfun

Miscellaneous collection of functions
http://mskcc-epi-bio.github.io/bstfun
Other
34 stars 24 forks source link

assert_package() is not exported anymore by gtsummary but is part of broom.helpers #82

Closed larmarange closed 2 years ago

larmarange commented 2 years ago

Several functions (like add_inline_forest_plot() still use assert_package()) producing an error as it is not anymore exported by gtsummary.

library(bstfun)
library(gtsummary)
#> 
#> Attachement du package : 'gtsummary'
#> Les objets suivants sont masqués depuis 'package:bstfun':
#> 
#>     tbl_split, trial

add_inline_forest_plot_ex1 <-
  lm(mpg ~ cyl + am + drat, mtcars) %>%
  tbl_regression() %>%
  add_inline_forest_plot()
#> Error: 'assert_package' n’est un object exporté depuis 'namespace:gtsummary'

Created on 2022-02-03 by the reprex package (v2.0.1)

ddsjoberg commented 2 years ago

Can you try the dev version? I added this:

https://github.com/ddsjoberg/bstfun/blob/b2ae96230f2c46e5a2a8c02139de6c6e836478e7/R/add_inline_forest_plot.R#L89

larmarange commented 2 years ago

Sorry. I just forgot to update bstfun

ddsjoberg commented 2 years ago

No worries! :)