Same problem for me with gtsummary::tbl_summary.
Code ran fine a month ago, but now this error comes up. Not sure how to resolve it.
Error in scope_tidy():
! The .$x data frame does not have the required "variable" column.
Run rlang::last_trace() to see where the error occurred.
(I would have posted a comment but I am not permitted)