It's been one day and all my tables have stopped loading. No matter what I do (restart R, update packages, shut down computer) I keep getting the same error message for all of my tables:
Error: Problem with mutate()
input row_numbers
. x subscript out of bounds ℹ Input row_numbers
is unlist(.data$row_numbers) %>% unname() %>% list()
.
And I'm not even using the mutate function? My beautiful tables just no longer work. I didn't load any new packages, and something major has changed. How can I troubleshoot this?
Here is what my code looks like for the survey data:
base %>%
select(baseline_age, Age.Category, Gender.Category, Race.Category,baseline_ethnicity, baseline_insurance, baseline_education, smrc_baseline_1, smrc_baseline_2, health_lit_one) %>%
gtsummary::tbl_summary(
statistic = list(all_continuous() ~ "{mean} ({sd})",
all_categorical() ~ "{n} / {N} ({p}%)"),
digits = all_continuous() ~ 1,
missing_text = "Missing",
label = list(baseline_age ~"Mean Age (SD)",
Age.Category ~"Age Category",
Race.Category ~ "Race",
Gender.Category ~ "Gender Identity",
baseline_insurance ~ "Reported source of payment for contraceptive services",
baseline_education ~ "Education",
baseline_ethnicity ~ "Ethnicity",
smrc_baseline_1 ~ "Confidence that I can take my medication when there is a change in my usual day",
smrc_baseline_2 ~ "Confidence that I can find someone to take me to the doctor’s office if I need help ",
health_lit_one ~ "How often do you have problems learning about your health condition because of difficulty understanding written information?")) %>%
modify_header(label ~ "**Variable**") %>%
modify_caption("**Table 1. Sociodemographics and Personal characteristics**") %>%
bold_labels()
It has worked perfectly up until a few hours ago and I'm so lost.