Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed tests #16

Open
shajoezhu opened this issue Nov 10, 2024 · 1 comment
Open

failed tests #16

shajoezhu opened this issue Nov 10, 2024 · 1 comment
Labels
bug Something isn't working sme

Comments

@shajoezhu
Copy link
Collaborator

 ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-tt_as_flextable.R:25:3'): Can create flextable object that works with different styles ──
  sum(unlist(nrow(ft))) not equal to 20.
  1/1 mismatches
  [1] 10 - 20 == -10
  ── Error ('test-tt_as_flextable.R:145:3'): check pagination ────────────────────
  Error in `pos_splits(pos)`: could not find function "pos_splits"
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(...) at test-tt_as_flextable.R:145: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. └─rtables.officer::tt_to_flextable(tbl, paginate = TRUE, lpp = 100)
   10.   └─base::lapply(...)
   11.     └─rtables.officer (local) FUN(X[[i]], ...)
   12.       └─rtables.officer:::.figure_out_colinds(tb, tt)
   13.         └─rtables.officer:::.tab_to_colpath_set(subtab)
   14.           └─base::vapply(...)
   15.             └─rtables.officer (local) FUN(X[[i]], ...)
   16.               ├─base::paste(pos_to_path(tree_pos(y)), collapse = " ")
   17.               └─rtables.officer:::pos_to_path(tree_pos(y))
  
@JanaJarecki
Copy link

Hey guys, team, is there any workaround or a dev version to address this? If I knew your code better I'd try to do a PR (just because I have production code for automated reporting that relies on tt_to_flextable(), heh). I'll subscribe to the issue for now.

@Melkiades Melkiades added the bug Something isn't working label Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working sme
Projects
None yet
Development

No branches or pull requests

3 participants