Error(s) in re-building vignettes:
--- re-building ‘crosstable-report.Rmd’ using rmarkdown

Quitting from crosstable-report.Rmd:54-95 [officer]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/purrr_error_indexed>
Error in `map2()`:
ℹ In index: 2.
ℹ With name: cyl.
Caused by error in `as.data.frame.integer()`:
! row names contain missing values
---
Backtrace:
     ▆
  1. ├─crosstable::crosstable(...)
  2. │ └─crosstable:::cross_by(...)
  3. │   ├─... %>% list_rbind()
  4. │   └─purrr::imap(...)
  5. │     └─purrr::map2(.x, vec_index(.x), .f, ...)
  6. │       └─purrr:::map2_("list", .x, .y, .f, ..., .progress = .progress)
  7. │         ├─purrr:::with_indexed_errors(...)
  8. │         │ └─base::withCallingHandlers(...)
  9. │         ├─purrr:::call_with_cleanup(...)
 10. │         └─crosstable (local) .f(.x[[i]], .y[[i]], ...)
 11. │           └─crosstable:::cross_categorical(...)
 12. │             └─crosstable:::summarize_categorical_by(...)
 13. │               └─crosstable:::summarize_categorical_single(...)
 14. │                 └─... %>% select(x = 1, n = 2)
 15. ├─purrr::list_rbind(.)
 16. │ └─purrr:::check_list_of_data_frames(x)
 17. │   └─vctrs::obj_check_list(x, call = error_call)
 18. ├─dplyr::select(., x = 1, n = 2)
 19. ├─base::as.data.frame(.)
 20. └─crosstable:::as.data.frame.table(.)
 21.   └─base::as.data.frame.table(..., stringsAsFactors = FALSE)
 22.     ├─base::eval(ex)
 23.     │ └─base::eval(ex)
 24.     └─base::data.frame(...)
 25.       ├─base::as.data.frame(x[[i]], optional = TRUE)
 26.       └─base::as.data.frame.integer(x[[i]], optional = TRUE)
 27.         └─base::stop("row names contain missing values")
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'crosstable-report.Rmd' failed with diagnostics:
ℹ In index: 2.
ℹ With name: cyl.
Caused by error in `as.data.frame.integer()`:
! row names contain missing values
--- failed re-building ‘crosstable-report.Rmd’

--- re-building ‘crosstable-selection.Rmd’ using rmarkdown

Quitting from crosstable-selection.Rmd:34-39 [crosstable-bare]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/purrr_error_indexed>
Error in `map2()`:
ℹ In index: 5.
ℹ With name: Species.
Caused by error in `as.data.frame.integer()`:
! row names contain missing values
---
Backtrace:
     ▆
  1. ├─crosstable::crosstable(iris2, everything())
  2. │ └─crosstable:::cross_by(...)
  3. │   ├─... %>% list_rbind()
  4. │   └─purrr::imap(...)
  5. │     └─purrr::map2(.x, vec_index(.x), .f, ...)
  6. │       └─purrr:::map2_("list", .x, .y, .f, ..., .progress = .progress)
  7. │         ├─purrr:::with_indexed_errors(...)
  8. │         │ └─base::withCallingHandlers(...)
  9. │         ├─purrr:::call_with_cleanup(...)
 10. │         └─crosstable (local) .f(.x[[i]], .y[[i]], ...)
 11. │           └─crosstable:::cross_categorical(...)
 12. │             └─crosstable:::summarize_categorical_single(...)
 13. │               └─... %>% select(x = 1, n = 2)
 14. ├─purrr::list_rbind(.)
 15. │ └─purrr:::check_list_of_data_frames(x)
 16. │   └─vctrs::obj_check_list(x, call = error_call)
 17. ├─dplyr::select(., x = 1, n = 2)
 18. ├─base::as.data.frame(.)
 19. └─crosstable:::as.data.frame.table(.)
 20.   └─base::as.data.frame.table(..., stringsAsFactors = FALSE)
 21.     ├─base::eval(ex)
 22.     │ └─base::eval(ex)
 23.     └─base::data.frame(...)
 24.       ├─base::as.data.frame(x[[i]], optional = TRUE)
 25.       └─base::as.data.frame.integer(x[[i]], optional = TRUE)
 26.         └─base::stop("row names contain missing values")
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'crosstable-selection.Rmd' failed with diagnostics:
ℹ In index: 5.
ℹ With name: Species.
Caused by error in `as.data.frame.integer()`:
! row names contain missing values
--- failed re-building ‘crosstable-selection.Rmd’

--- re-building ‘crosstable.Rmd’ using rmarkdown

Quitting from crosstable.Rmd:122-126 [crosstable-total-both]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/purrr_error_indexed>
Error in `map2()`:
ℹ In index: 1.
ℹ With name: am.
Caused by error in `as.data.frame.integer()`:
! row names contain missing values
---
Backtrace:
     ▆
  1. ├─... %>% as_flextable(keep_id = TRUE)
  2. ├─flextable::as_flextable(., keep_id = TRUE)
  3. ├─crosstable::crosstable(mtcars2, c(am, mpg), by = vs, total = "both")
  4. │ └─crosstable:::cross_by(...)
  5. │   ├─... %>% list_rbind()
  6. │   └─purrr::imap(...)
  7. │     └─purrr::map2(.x, vec_index(.x), .f, ...)
  8. │       └─purrr:::map2_("list", .x, .y, .f, ..., .progress = .progress)
  9. │         ├─purrr:::with_indexed_errors(...)
 10. │         │ └─base::withCallingHandlers(...)
 11. │         ├─purrr:::call_with_cleanup(...)
 12. │         └─crosstable (local) .f(.x[[i]], .y[[i]], ...)
 13. │           └─crosstable:::cross_categorical(...)
 14. │             └─crosstable:::summarize_categorical_by(...)
 15. │               └─crosstable:::summarize_categorical_single(...)
 16. │                 └─... %>% select(x = 1, n = 2)
 17. ├─purrr::list_rbind(.)
 18. │ └─purrr:::check_list_of_data_frames(x)
 19. │   └─vctrs::obj_check_list(x, call = error_call)
 20. ├─dplyr::select(., x = 1, n = 2)
 21. ├─base::as.data.frame(.)
 22. └─crosstable:::as.data.frame.table(.)
 23.   └─base::as.data.frame.table(..., stringsAsFactors = FALSE)
 24.     ├─base::eval(ex)
 25.     │ └─base::eval(ex)
 26.     └─base::data.frame(...)
 27.       ├─base::as.data.frame(x[[i]], optional = TRUE)
 28.       └─base::as.data.frame.integer(x[[i]], optional = TRUE)
 29.         └─base::stop("row names contain missing values")
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'crosstable.Rmd' failed with diagnostics:
ℹ In index: 1.
ℹ With name: am.
Caused by error in `as.data.frame.integer()`:
! row names contain missing values
--- failed re-building ‘crosstable.Rmd’

--- re-building ‘customization.Rmd’ using rmarkdown
--- finished re-building ‘customization.Rmd’

--- re-building ‘percent_pattern.Rmd’ using rmarkdown

Quitting from percent_pattern.Rmd:47-49 [Default behaviour]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/purrr_error_indexed>
Error in `map2()`:
ℹ In index: 1.
ℹ With name: cyl.
Caused by error in `as.data.frame.integer()`:
! row names contain missing values
---
Backtrace:
     ▆
  1. ├─crosstable(mtcars3, cyl, by = vs) %>% as_flextable()
  2. ├─flextable::as_flextable(.)
  3. ├─crosstable::crosstable(mtcars3, cyl, by = vs)
  4. │ └─crosstable:::cross_by(...)
  5. │   ├─... %>% list_rbind()
  6. │   └─purrr::imap(...)
  7. │     └─purrr::map2(.x, vec_index(.x), .f, ...)
  8. │       └─purrr:::map2_("list", .x, .y, .f, ..., .progress = .progress)
  9. │         ├─purrr:::with_indexed_errors(...)
 10. │         │ └─base::withCallingHandlers(...)
 11. │         ├─purrr:::call_with_cleanup(...)
 12. │         └─crosstable (local) .f(.x[[i]], .y[[i]], ...)
 13. │           └─crosstable:::cross_categorical(...)
 14. │             └─crosstable:::summarize_categorical_by(...)
 15. │               └─marginSums(nn3, margin = 1) %>% as.data.frame(responseName = "n_row_na")
 16. ├─purrr::list_rbind(.)
 17. │ └─purrr:::check_list_of_data_frames(x)
 18. │   └─vctrs::obj_check_list(x, call = error_call)
 19. ├─base::as.data.frame(., responseName = "n_row_na")
 20. └─crosstable:::as.data.frame.table(., responseName = "n_row_na")
 21.   └─base::as.data.frame.table(..., stringsAsFactors = FALSE)
 22.     ├─base::eval(ex)
 23.     │ └─base::eval(ex)
 24.     └─base::data.frame(...)
 25.       ├─base::as.data.frame(x[[i]], optional = TRUE)
 26.       └─base::as.data.frame.integer(x[[i]], optional = TRUE)
 27.         └─base::stop("row names contain missing values")
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'percent_pattern.Rmd' failed with diagnostics:
ℹ In index: 1.
ℹ With name: cyl.
Caused by error in `as.data.frame.integer()`:
! row names contain missing values
--- failed re-building ‘percent_pattern.Rmd’

SUMMARY: processing the following files failed:
  ‘crosstable-report.Rmd’ ‘crosstable-selection.Rmd’ ‘crosstable.Rmd’
  ‘percent_pattern.Rmd’

Error: Vignette re-building failed.
Execution halted