Closed pawelru closed 3 months ago
https://github.com/r-universe/pharmaverse/actions/runs/8882670125/job/24388015743
* checking examples ... ERROR Running examples in 'formatters-Ex.R' failed The error most likely occurred in: > ### Name: export_as_txt > ### Title: Export a table-like object to plain (ASCII) text with page > ### breaks > ### Aliases: export_as_txt > > ### ** Examples > > export_as_txt(basic_matrix_form(mtcars), pg_height = 5, pg_width = 4) Error in loadNamespace(x) : there is no package called 'stringi' Calls: export_as_txt ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted
══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-exporters.R:33:3'): exporters work ───────────────────────────── <packageNotFoundError/error/condition> Error in `loadNamespace(x)`: there is no package called 'stringi' Backtrace: ▆ 1. ├─formatters::export_as_txt(...) at test-exporters.R:33:3 2. │ └─formatters::paginate_to_mpfs(...) 3. │ └─formatters::paginate_indices(...) 4. │ └─formatters:::do_cell_fnotes_wrap(mpf, colwidths, max_width, tf_wrap = tf_wrap) 5. │ ├─base::matrix(...) 6. │ ├─base::unlist(...) 7. │ └─base::mapply(...) 8. │ └─formatters (local) `<fn>`(str = dots[[1L]][[2L]], width = dots[[2L]][[2L]], collapse = dots[[3L]][[1L]]) 9. │ └─formatters:::.go_stri_wrap(str, width) 10. └─base::loadNamespace(x) 11. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 12. └─base (local) withOneRestart(expr, restarts[[1L]]) 13. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test-exporters.R:114:3'): mpf_subset_rows works when there are newlines/wrapping in column labels ── <packageNotFoundError/error/condition> Error in `loadNamespace(x)`: there is no package called 'stringi' Backtrace: ▆ 1. ├─base::toString(mymf, hsep = "-") at test-exporters.R:114:3 2. ├─formatters::toString(mymf, hsep = "-") 3. │ └─formatters (local) .local(x, ...) 4. │ └─formatters:::do_cell_fnotes_wrap(...) 5. │ ├─base::matrix(...) 6. │ ├─base::unlist(...) 7. │ └─base::mapply(...) 8. │ └─formatters (local) `<fn>`(str = dots[[1L]][[2L]], width = dots[[2L]][[2L]], collapse = dots[[3L]][[1L]]) 9. │ └─formatters:::.go_stri_wrap(str, width) 10. └─base::loadNamespace(x) 11. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 12. └─base (local) withOneRestart(expr, restarts[[1L]]) 13. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test-exporters.R:138:3'): export_as_txt maintains repeated columns when paginate is TRUE ── <packageNotFoundError/error/condition> Error in `loadNamespace(x)`: there is no package called 'stringi' Backtrace: ▆ 1. ├─formatters::export_as_txt(dfmf, cpp = 90, rep_cols = 3) at test-exporters.R:138:3 2. │ └─formatters::paginate_to_mpfs(...) 3. │ └─formatters::paginate_indices(...) 4. │ └─formatters:::do_cell_fnotes_wrap(mpf, colwidths, max_width, tf_wrap = tf_wrap) 5. │ ├─base::matrix(...) 6. │ ├─base::unlist(...) 7. │ └─base::mapply(...) 8. │ └─formatters (local) `<fn>`(str = dots[[1L]][[2L]], width = dots[[2L]][[2L]], collapse = dots[[3L]][[1L]]) 9. │ └─formatters:::.go_stri_wrap(str, width) 10. └─base::loadNamespace(x) 11. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 12. └─base (local) withOneRestart(expr, restarts[[1L]]) 13. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test-exporters.R:150:3'): export_as_txt maintains horizontal separator from table ── <packageNotFoundError/error/condition> Error in `loadNamespace(x)`: there is no package called 'stringi' Backtrace: ▆ 1. ├─base::strsplit(export_as_txt(dfmf), "\n") at test-exporters.R:150:3 2. ├─formatters::export_as_txt(dfmf) 3. │ └─formatters::paginate_to_mpfs(...) 4. │ └─formatters::paginate_indices(...) 5. │ └─formatters:::do_cell_fnotes_wrap(mpf, colwidths, max_width, tf_wrap = tf_wrap) 6. │ ├─base::matrix(...) 7. │ ├─base::unlist(...) 8. │ └─base::mapply(...) 9. │ └─formatters (local) `<fn>`(str = dots[[1L]][[2L]], width = dots[[2L]][[2L]], collapse = dots[[3L]][[1L]]) 10. │ └─formatters:::.go_stri_wrap(str, width) 11. └─base::loadNamespace(x) 12. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 13. └─base (local) withOneRestart(expr, restarts[[1L]]) 14. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test-exporters.R:159:3'): export_as_pdf works ─────────────────────── <packageNotFoundError/error/condition> Error in `loadNamespace(x)`: there is no package called 'stringi' Backtrace: ▆ 1. ├─testthat::expect_warning(...) at test-exporters.R:159:3 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. ├─formatters::export_as_pdf(...) 7. │ └─base::lapply(...) 8. │ └─formatters (local) FUN(X[[i]], ...) 9. │ ├─grid::textGrob(...) 10. │ │ └─grid::grob(...) 11. │ ├─base::toString(...) 12. │ └─formatters::toString(...) 13. │ └─formatters (local) .local(x, ...) 14. │ └─formatters:::do_cell_fnotes_wrap(...) 15. │ ├─base::matrix(...) 16. │ ├─base::unlist(...) 17. │ └─base::mapply(...) 18. │ └─formatters (local) `<fn>`(str = dots[[1L]][[2L]], width = dots[[2L]][[2L]], collapse = dots[[3L]][[1L]]) 19. │ └─formatters:::.go_stri_wrap(str, width) 20. └─base::loadNamespace(x) 21. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 22. └─base (local) withOneRestart(expr, restarts[[1L]]) 23. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test-exporters.R:182:3'): exporting lists of tables and listings works ── <packageNotFoundError/error/condition> Error in `loadNamespace(x)`: there is no package called 'stringi' Backtrace: ▆ 1. ├─formatters::export_as_txt(...) at test-exporters.R:182:3 2. │ ├─formatters::paginate_to_mpfs(...) 3. │ │ ├─base::unlist(...) 4. │ │ └─base::lapply(...) 5. │ │ └─formatters (local) FUN(X[[i]], ...) 6. │ │ └─base::eval(cur_call, envir = parent.frame(3L)) 7. │ │ └─base::eval(cur_call, envir = parent.frame(3L)) 8. │ └─formatters::paginate_to_mpfs(...) 9. │ └─formatters::paginate_indices(...) 10. │ └─formatters:::do_cell_fnotes_wrap(mpf, colwidths, max_width, tf_wrap = tf_wrap) 11. │ ├─base::matrix(...) 12. │ ├─base::unlist(...) 13. │ └─base::mapply(...) 14. │ └─formatters (local) `<fn>`(str = dots[[1L]][[2L]], width = dots[[2L]][[2L]], collapse = dots[[3L]][[1L]]) 15. │ └─formatters:::.go_stri_wrap(str, width) 16. └─base::loadNamespace(x) 17. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 18. └─base (local) withOneRestart(expr, restarts[[1L]]) 19. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test-formatters.R:570:1'): (code run outside of `test_that()`) ────── <packageNotFoundError/error/condition> Error in `loadNamespace(x)`: there is no package called 'stringi' Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test-formatters.R:570:1 2. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─base::grep("spn_val", toString(mpf)) 5. │ └─base::is.factor(x) 6. ├─base::toString(mpf) 7. ├─formatters::toString(mpf) 8. │ └─formatters (local) .local(x, ...) 9. │ └─formatters:::do_cell_fnotes_wrap(...) 10. │ ├─base::matrix(...) 11. │ ├─base::unlist(...) 12. │ └─base::mapply(...) 13. │ └─formatters (local) `<fn>`(str = dots[[1L]][[1L]], width = dots[[2L]][[1L]], collapse = dots[[3L]][[1L]]) 14. │ └─formatters:::.go_stri_wrap(str, width) 15. └─base::loadNamespace(x) 16. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 17. └─base (local) withOneRestart(expr, restarts[[1L]]) 18. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test-listings.R:49:3'): basic_listing_mf respect core modifications from table matrix_form ── <packageNotFoundError/error/condition> Error in `loadNamespace(x)`: there is no package called 'stringi' Backtrace: ▆ 1. ├─testthat::expect_identical(...) at test-listings.R:49:3 2. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─base::strsplit(toString(lmf), "\n") 5. ├─base::toString(lmf) 6. ├─formatters::toString(lmf) 7. │ └─formatters (local) .local(x, ...) 8. │ └─formatters:::do_cell_fnotes_wrap(...) 9. │ ├─base::matrix(...) 10. │ ├─base::unlist(...) 11. │ └─base::mapply(...) 12. │ └─formatters (local) `<fn>`(str = dots[[1L]][[1L]], width = dots[[2L]][[1L]], collapse = dots[[3L]][[1L]]) 13. │ └─formatters:::.go_stri_wrap(str, width) 14. └─base::loadNamespace(x) 15. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 16. └─base (local) withOneRestart(expr, restarts[[1L]]) 17. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test-listings.R:58:3'): regression test for oneline listing pagination ── <packageNotFoundError/error/condition> Error in `loadNamespace(x)`: there is no package called 'stringi' Backtrace: ▆ 1. ├─testthat::expect_silent(toString(lmf)) at test-listings.R:58:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─base::toString(lmf) 10. ├─formatters::toString(lmf) 11. │ └─formatters (local) .local(x, ...) 12. │ └─formatters:::do_cell_fnotes_wrap(...) 13. │ ├─base::matrix(...) 14. │ ├─base::unlist(...) 15. │ └─base::mapply(...) 16. │ └─formatters (local) `<fn>`(str = dots[[1L]][[1L]], width = dots[[2L]][[1L]], collapse = dots[[3L]][[1L]]) 17. │ └─formatters:::.go_stri_wrap(str, width) 18. └─base::loadNamespace(x) 19. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 20. └─base (local) withOneRestart(expr, restarts[[1L]]) 21. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test-listings.R:97:3'): listings are correctly paginated when a wrapping happens on non-dominant keycol ── <packageNotFoundError/error/condition> Error in `loadNamespace(x)`: there is no package called 'stringi' Backtrace: ▆ 1. ├─testthat::expect_silent(...) at test-listings.R:97:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─formatters::paginate_to_mpfs(...) 10. │ └─formatters::paginate_indices(...) 11. │ └─formatters:::do_cell_fnotes_wrap(mpf, colwidths, max_width, tf_wrap = tf_wrap) 12. │ ├─base::matrix(...) 13. │ ├─base::unlist(...) 14. │ └─base::mapply(...) 15. │ └─formatters (local) `<fn>`(str = dots[[1L]][[1L]], width = dots[[2L]][[1L]], collapse = dots[[3L]][[1L]]) 16. │ └─formatters:::.go_stri_wrap(str, width) 17. └─base::loadNamespace(x) 18. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 19. └─base (local) withOneRestart(expr, restarts[[1L]]) 20. └─base (local) doWithOneRestart(return(expr), restart) ── Failure ('test-pagination.R:39:3'): pagination works ──────────────────────── `paginate_to_mpfs(...)` threw an error with unexpected message. Expected match: "Unable to find any valid pagination" Actual message: "there is no package called 'stringi'" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-pagination.R:39:3 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. ├─formatters::paginate_to_mpfs(...) 7. │ └─formatters::paginate_indices(...) 8. │ └─formatters:::do_cell_fnotes_wrap(mpf, colwidths, max_width, tf_wrap = tf_wrap) 9. │ ├─base::matrix(...) 10. │ ├─base::unlist(...) 11. │ └─base::mapply(...) 12. │ └─formatters (local) `<fn>`(str = dots[[1L]][[2L]], width = dots[[2L]][[2L]], collapse = dots[[3L]][[1L]]) 13. │ └─formatters:::.go_stri_wrap(str, width) 14. └─base::loadNamespace(x) 15. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 16. └─base (local) withOneRestart(expr, restarts[[1L]]) 17. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test-pagination.R:66:3'): pagination works ────────────────────────── <packageNotFoundError/error/condition> Error in `loadNamespace(x)`: there is no package called 'stringi' Backtrace: ▆ 1. ├─testthat::expect_identical(...) at test-pagination.R:66:3 2. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─formatters::paginate_to_mpfs(...) 5. │ └─formatters::paginate_indices(...) 6. │ └─formatters:::do_cell_fnotes_wrap(mpf, colwidths, max_width, tf_wrap = tf_wrap) 7. │ ├─base::matrix(...) 8. │ ├─base::unlist(...) 9. │ └─base::mapply(...) 10. │ └─formatters (local) `<fn>`(str = dots[[1L]][[2L]], width = dots[[2L]][[2L]], collapse = dots[[3L]][[1L]]) 11. │ └─formatters:::.go_stri_wrap(str, width) 12. └─base::loadNamespace(x) 13. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 14. └─base (local) withOneRestart(expr, restarts[[1L]]) 15. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test-pagination.R:349:3'): spans and string matrix match after pagination when table has single column ── <packageNotFoundError/error/condition> Error in `loadNamespace(x)`: there is no package called 'stringi' Backtrace: ▆ 1. ├─formatters::paginate_to_mpfs(test) at test-pagination.R:349:3 2. │ └─formatters::paginate_indices(...) 3. │ └─formatters:::do_cell_fnotes_wrap(mpf, colwidths, max_width, tf_wrap = tf_wrap) 4. │ ├─base::matrix(...) 5. │ ├─base::unlist(...) 6. │ └─base::mapply(...) 7. │ └─formatters (local) `<fn>`(str = dots[[1L]][[2L]], width = dots[[2L]][[2L]], collapse = dots[[3L]][[1L]]) 8. │ └─formatters:::.go_stri_wrap(str, width) 9. └─base::loadNamespace(x) 10. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 11. └─base (local) withOneRestart(expr, restarts[[1L]]) 12. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test-pagination.R:359:3'): pag_num works in paginate_to_mpfs and export_as_txt ── <packageNotFoundError/error/condition> Error in `loadNamespace(x)`: there is no package called 'stringi' Backtrace: ▆ 1. ├─formatters::paginate_to_mpfs(tst, page_num = TRUE) at test-pagination.R:359:3 2. │ └─formatters::paginate_indices(...) 3. │ └─formatters:::do_cell_fnotes_wrap(mpf, colwidths, max_width, tf_wrap = tf_wrap) 4. │ ├─base::matrix(...) 5. │ ├─base::unlist(...) 6. │ └─base::mapply(...) 7. │ └─formatters (local) `<fn>`(str = dots[[1L]][[2L]], width = dots[[2L]][[2L]], collapse = dots[[3L]][[1L]]) 8. │ └─formatters:::.go_stri_wrap(str, width) 9. └─base::loadNamespace(x) 10. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 11. └─base (local) withOneRestart(expr, restarts[[1L]]) 12. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test-pagination.R:414:3'): colwidths and num_rep_cols work when using lists of tables and listings ── <packageNotFoundError/error/condition> Error in `loadNamespace(x)`: there is no package called 'stringi' Backtrace: ▆ 1. ├─formatters::export_as_txt(...) at test-pagination.R:414:3 2. │ ├─formatters::paginate_to_mpfs(...) 3. │ │ ├─base::unlist(...) 4. │ │ └─base::lapply(...) 5. │ │ └─formatters (local) FUN(X[[i]], ...) 6. │ │ └─base::eval(cur_call, envir = parent.frame(3L)) 7. │ │ └─base::eval(cur_call, envir = parent.frame(3L)) 8. │ └─formatters::paginate_to_mpfs(...) 9. │ └─formatters::paginate_indices(...) 10. │ └─formatters:::do_cell_fnotes_wrap(mpf, colwidths, max_width, tf_wrap = tf_wrap) 11. │ ├─base::matrix(...) 12. │ ├─base::unlist(...) 13. │ └─base::mapply(...) 14. │ └─formatters (local) `<fn>`(str = dots[[1L]][[1L]], width = dots[[2L]][[1L]], collapse = dots[[3L]][[1L]]) 15. │ └─formatters:::.go_stri_wrap(str, width) 16. └─base::loadNamespace(x) 17. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 18. └─base (local) withOneRestart(expr, restarts[[1L]]) 19. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test-pagination.R:442:3'): rep_cols works as intended for listings and tables ── <packageNotFoundError/error/condition> Error in `loadNamespace(x)`: there is no package called 'stringi' Backtrace: ▆ 1. ├─... %>% unlist() at test-pagination.R:442:3 2. ├─base::unlist(.) 3. ├─base::strsplit(., "\n") 4. ├─formatters::export_as_txt(bmf, rep_cols = 2, cpp = 90) 5. │ └─formatters::paginate_to_mpfs(...) 6. │ └─formatters::paginate_indices(...) 7. │ └─formatters:::do_cell_fnotes_wrap(mpf, colwidths, max_width, tf_wrap = tf_wrap) 8. │ ├─base::matrix(...) 9. │ ├─base::unlist(...) 10. │ └─base::mapply(...) 11. │ └─formatters (local) `<fn>`(str = dots[[1L]][[2L]], width = dots[[2L]][[2L]], collapse = dots[[3L]][[1L]]) 12. │ └─formatters:::.go_stri_wrap(str, width) 13. └─base::loadNamespace(x) 14. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 15. └─base (local) withOneRestart(expr, restarts[[1L]]) 16. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test-print.R:41:3'): toString works with and without indentation ──── <packageNotFoundError/error/condition> Error in `loadNamespace(x)`: there is no package called 'stringi' Backtrace: ▆ 1. ├─testthat::expect_identical(...) at test-print.R:41:3 2. │ └─testthat::quasi_label(enquo(expected), expected.label, arg = "expected") 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─base::strsplit(toString(mf, hsep = "-"), "\n") 5. ├─base::toString(mf, hsep = "-") 6. ├─formatters::toString(mf, hsep = "-") 7. │ └─formatters (local) .local(x, ...) 8. │ └─formatters:::do_cell_fnotes_wrap(...) 9. │ └─formatters:::.check_indentation(...) 10. │ └─base::vapply(...) 11. │ └─formatters (local) FUN(X[[i]], ...) 12. └─base::loadNamespace(x) 13. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 14. └─base (local) withOneRestart(expr, restarts[[1L]]) 15. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test-txt_wrap.R:16:3'): tf_wrap and table inset work (including together) ── <packageNotFoundError/error/condition> Error in `loadNamespace(x)`: there is no package called 'stringi' Backtrace: ▆ 1. ├─base::toString(matform, tf_wrap = TRUE, max_width = "auto", hsep = "-") at test-txt_wrap.R:16:3 2. ├─formatters::toString(...) 3. │ └─formatters (local) .local(x, ...) 4. │ └─formatters:::do_cell_fnotes_wrap(...) 5. │ ├─base::matrix(...) 6. │ ├─base::unlist(...) 7. │ └─base::mapply(...) 8. │ └─formatters (local) `<fn>`(str = dots[[1L]][[2L]], width = dots[[2L]][[2L]], collapse = dots[[3L]][[1L]]) 9. │ └─formatters:::.go_stri_wrap(str, width) 10. └─base::loadNamespace(x) 11. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 12. └─base (local) withOneRestart(expr, restarts[[1L]]) 13. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test-txt_wrap.R:110:3'): toString() is silent when newline is in decorations (footnotes, titles) as matrix_form constructor expands all newlines ── <packageNotFoundError/error/condition> Error in `loadNamespace(x)`: there is no package called 'stringi' Backtrace: ▆ 1. ├─testthat::expect_silent(toString(bmf, tf_wrap = FALSE)) at test-txt_wrap.R:110:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─base::toString(bmf, tf_wrap = FALSE) 10. ├─formatters::toString(bmf, tf_wrap = FALSE) 11. │ └─formatters (local) .local(x, ...) 12. │ └─formatters:::do_cell_fnotes_wrap(...) 13. │ ├─base::matrix(...) 14. │ ├─base::unlist(...) 15. │ └─base::mapply(...) 16. │ └─formatters (local) `<fn>`(str = dots[[1L]][[2L]], width = dots[[2L]][[2L]], collapse = dots[[3L]][[1L]]) 17. │ └─formatters:::.go_stri_wrap(str, width) 18. └─base::loadNamespace(x) 19. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 20. └─base (local) withOneRestart(expr, restarts[[1L]]) 21. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test-txt_wrap.R:122:3'): wrapping works with words that are too big (no warning) ── <packageNotFoundError/error/condition> Error in `loadNamespace(x)`: there is no package called 'stringi' Backtrace: ▆ 1. ├─base::toString(bmf, tf_wrap = TRUE, max_width = 4, hsep = "-") at test-txt_wrap.R:122:3 2. ├─formatters::toString(bmf, tf_wrap = TRUE, max_width = 4, hsep = "-") 3. │ └─formatters (local) .local(x, ...) 4. │ └─formatters:::do_cell_fnotes_wrap(...) 5. │ ├─base::matrix(...) 6. │ ├─base::unlist(...) 7. │ └─base::mapply(...) 8. │ └─formatters (local) `<fn>`(str = dots[[1L]][[2L]], width = dots[[2L]][[2L]], collapse = dots[[3L]][[1L]]) 9. │ └─formatters:::.go_stri_wrap(str, width) 10. └─base::loadNamespace(x) 11. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 12. └─base (local) withOneRestart(expr, restarts[[1L]]) 13. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test-txt_wrap.R:157:3'): auto wrapping works with inset and col_gap ── <packageNotFoundError/error/condition> Error in `loadNamespace(x)`: there is no package called 'stringi' Backtrace: ▆ 1. ├─base::toString(bmf, tf_wrap = TRUE, max_width = "auto", hsep = "=") at test-txt_wrap.R:157:3 2. ├─formatters::toString(...) 3. │ └─formatters (local) .local(x, ...) 4. │ └─formatters:::do_cell_fnotes_wrap(...) 5. │ ├─base::matrix(...) 6. │ ├─base::unlist(...) 7. │ └─base::mapply(...) 8. │ └─formatters (local) `<fn>`(str = dots[[1L]][[2L]], width = dots[[2L]][[2L]], collapse = dots[[3L]][[1L]]) 9. │ └─formatters:::.go_stri_wrap(str, width) 10. └─base::loadNamespace(x) 11. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 12. └─base (local) withOneRestart(expr, restarts[[1L]]) 13. └─base (local) doWithOneRestart(return(expr), restart) ── Failure ('test-txt_wrap.R:204:3'): row label wrapping has identical indentation ── `catform <- toString(matform, widths = c(15, 5), hsep = "-")` threw an error with unexpected message. Expected match: "indentation mismatches" Actual message: "there is no package called 'stringi'" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-txt_wrap.R:204:3 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. ├─base::toString(matform, widths = c(15, 5), hsep = "-") 7. ├─formatters::toString(matform, widths = c(15, 5), hsep = "-") 8. │ └─formatters (local) .local(x, ...) 9. │ └─formatters:::do_cell_fnotes_wrap(...) 10. │ └─formatters:::.check_indentation(...) 11. │ └─base::vapply(...) 12. │ └─formatters (local) FUN(X[[i]], ...) 13. └─base::loadNamespace(x) 14. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 15. └─base (local) withOneRestart(expr, restarts[[1L]]) 16. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test-txt_wrap.R:211:3'): row label wrapping has identical indentation ── <packageNotFoundError/error/condition> Error in `loadNamespace(x)`: there is no package called 'stringi' Backtrace: ▆ 1. ├─base::toString(matform, widths = c(15, 5), hsep = "-") at test-txt_wrap.R:211:3 2. ├─formatters::toString(matform, widths = c(15, 5), hsep = "-") 3. │ └─formatters (local) .local(x, ...) 4. │ └─formatters:::do_cell_fnotes_wrap(...) 5. │ └─formatters:::.check_indentation(...) 6. │ └─base::vapply(...) 7. │ └─formatters (local) FUN(X[[i]], ...) 8. └─base::loadNamespace(x) 9. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 10. └─base (local) withOneRestart(expr, restarts[[1L]]) 11. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test-txt_wrap.R:230:3'): wrap_strings work ────────────────────────── <packageNotFoundError/error/condition> Error in `loadNamespace(x)`: there is no package called 'stringi' Backtrace: ▆ 1. ├─testthat::expect_identical(...) at test-txt_wrap.R:230:3 2. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─formatters::wrap_string(str, 5, collapse = "\n") 5. │ ├─base::unlist(...) 6. │ └─base::lapply(str, wrap_string, width = width, collapse = collapse) 7. │ └─formatters (local) FUN(X[[i]], ...) 8. │ └─formatters:::.go_stri_wrap(str, width) 9. └─base::loadNamespace(x) 10. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 11. └─base (local) withOneRestart(expr, restarts[[1L]]) 12. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test-txt_wrap.R:288:3'): toString wrapping avoid trimming whitespaces ── <packageNotFoundError/error/condition> Error in `loadNamespace(x)`: there is no package called 'stringi' Backtrace: ▆ 1. ├─testthat::expect_silent(.check_indentation(bmf)) at test-txt_wrap.R:288:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─formatters:::.check_indentation(bmf) 10. │ └─base::vapply(...) 11. │ └─formatters (local) FUN(X[[i]], ...) 12. └─base::loadNamespace(x) 13. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 14. └─base (local) withOneRestart(expr, restarts[[1L]]) 15. └─base (local) doWithOneRestart(return(expr), restart) ── Error ('test-txt_wrap.R:353:3'): toString and wrapping cooperates well with separator divisors ── <packageNotFoundError/error/condition> Error in `loadNamespace(x)`: there is no package called 'stringi' Backtrace: ▆ 1. ├─testthat::expect_silent(toString(bmf, widths = c(4, 4, 4))) at test-txt_wrap.R:353:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─base::toString(bmf, widths = c(4, 4, 4)) 10. ├─formatters::toString(bmf, widths = c(4, 4, 4)) 11. │ └─formatters (local) .local(x, ...) 12. │ └─formatters:::do_cell_fnotes_wrap(...) 13. │ ├─base::matrix(...) 14. │ ├─base::unlist(...) 15. │ └─base::mapply(...) 16. │ └─formatters (local) `<fn>`(str = dots[[1L]][[1L]], width = dots[[2L]][[1L]], collapse = dots[[3L]][[1L]]) 17. │ └─formatters:::.go_stri_wrap(str, width) 18. └─base::loadNamespace(x) 19. └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 20. └─base (local) withOneRestart(expr, restarts[[1L]]) 21. └─base (local) doWithOneRestart(return(expr), restart) [ FAIL 26 | WARN 0 | SKIP 0 | PASS 175 ]
This was due to failure in installing the stringi package. This should fail on install deps step and should not enter r cmd check. Closing this
stringi
https://github.com/r-universe/pharmaverse/actions/runs/8882670125/job/24388015743