You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have run into an issue running tbl_regression() for a coxph model. It was working perfectly prior to the recent broom.helpers update, but now won't run without throwing the following error message:
Error in scope_tidy():
! The .$x data frame does not have the required "variable" column.
| +-... %>% print()
4.| \ -gtsummary:: as gt (x)
5.| -broom.helpers::.select_to_varnames (...)
6.| \broom.helpers::scope tidy(var_info, data)
7.| -cli::cli_abort("The .code Sx) data frame does not have the required (.val variable) column.")
8.| -rlang::abort(....)
| -base: print(.)
I can't copy and paste my full code as I'm working in a remote data safe haven with confidential data, but another user on stackexchange seems to have reported a similar issue today:https://github.com/larmarange/broom.helpers/issues/275
Apologies if this is not formatted well, it's my first time using github.
The text was updated successfully, but these errors were encountered:
I can't copy and paste my full code as I'm working in a remote data safe haven with confidential data
You don't need to provide the exact data you're using. Please check out https://reprex.tidyverse.org/, which will illustrate how to create a minimal reproducible example, that is, the minimal code+data needed to replicate your issue. You can often use a small subset of your data using dput() or even a small subset that has random noise added to it to preserve confidentiality.
Dear @nataliejcameron we need an example to reproduce the error. It does not have to be your exact data, but a similar model and code where the same error occurs.
Thank you - I've solved the issue myself by uninstalling gtsummary() and broom.helpers(), restarting my R session and then reinstalling them - please feel free to close this query. Thank you for your time.
I have run into an issue running tbl_regression() for a coxph model. It was working perfectly prior to the recent broom.helpers update, but now won't run without throwing the following error message:
Error in
scope_tidy()
:! The
.$x
data frame does not have the required "variable" column.Backtrace:
+-base (local) '' (x)
2.+- gtsummary:::print.gtsummary(x)
| +-... %>% print()
4.| \ -gtsummary:: as gt (x)
5.| -broom.helpers::.select_to_varnames (...)
6.| \broom.helpers::scope tidy(var_info, data)
7.| -cli::cli_abort("The .code Sx) data frame does not have the required (.val variable) column.")
8.| -rlang::abort(....)
| -base: print(.)
I can't copy and paste my full code as I'm working in a remote data safe haven with confidential data, but another user on stackexchange seems to have reported a similar issue today:https://github.com/larmarange/broom.helpers/issues/275
Apologies if this is not formatted well, it's my first time using github.
The text was updated successfully, but these errors were encountered: