Running ‘testthat.R’ [36s/40s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(gto)
  > 
  > test_check("gto")
  [ FAIL 5 | WARN 520 | SKIP 3 | PASS 36 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • Only done in devel gt at this point (2)
  • Seems to be issues with gt v0.8.0, and is fixed in devel version point (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-word.R:649:3'): tables with summaries can be added to a word doc ──
  lapply(...) (`actual`) not equal to list(...) (`expected`).
  
  `actual` is length 10
  `expected` is length 16
  
  `actual[[6]]`:   "grp_b"                 
  `expected[[6]]`: "avg"   "120.02" "—" "—"
  
  `actual[[7]]`:   "row_5" "5.550e+03" "NA" "1325.810"
  `expected[[7]]`: "total" "480.06"    "—"  "—"       
  
  `actual[[8]]`:   "row_6" "NA"     "fig" "13.255"
  `expected[[8]]`: "s.d."  "216.79" "—"   "—"     
  
  `actual[[9]]`:   "row_7" "7.770e+05" "grapefruit" "NA"
  `expected[[9]]`: "grp_b"                              
  
  `actual[[10]]`:   "row_8" "8.880e+06" "honeydew" "0.440"   
  `expected[[10]]`: "row_5" "5.550e+03" "NA"       "1325.810"
  
  `actual[[11]]` is absent
  `expected[[11]]` is a character vector ('row_6', 'NA', 'fig', '13.255')
  
  `actual[[12]]` is absent
  `expected[[12]]` is a character vector ('row_7', '7.770e+05', 'grapefruit', 'NA')
  
  `actual[[13]]` is absent
  `expected[[13]]` is a character vector ('row_8', '8.880e+06', 'honeydew', '0.440')
  
  `actual[[14]]` is absent
  `expected[[14]]` is a character vector ('avg', '3,220,850.00', '—', '—')
  
  `actual[[15]]` is absent
  `expected[[15]]` is a character vector ('total', '9,662,550.00', '—', '—')
  
  `actual[[16]]` is absent
  `expected[[16]]` is a character vector ('s.d.', '4,916,123.25', '—', '—')
  ── Failure ('test-word.R:730:3'): tables with footnotes can be added to a word doc ──
  docx_table_body_header %>% xml2::xml_find_all(".//w:p") %>% xml2::xml_text() (`actual`) not equal to c(...) (`expected`).
  
  `actual[1:5]`:   "num1"          "char2"          "fctr" "date" "time"
  `expected[1:5]`: "numtrue1false" "chartrue2false" "fctr" "date" "time"
  ── Failure ('test-word.R:744:3'): tables with footnotes can be added to a word doc ──
  lapply(...) (`actual`) not equal to list(...) (`expected`).
  
  `actual[[3]]`:   "1this is a footer example"    
  `expected[[3]]`: "true1this is a footer example"
  
  `actual[[4]]`:   "2this is a second footer example"    
  `expected[[4]]`: "true2this is a second footer example"
  ── Failure ('test-word.R:1340:3'): tables with cell & text coloring can be added to a word doc - with source_notes and footnotes ──
  docx_table_meta_info %>% ... (`actual`) not equal to list(c("", "My Footnote"), c("1", "My Footnote 2"), c("My Source Note")) (`expected`).
  
  `actual[[1]]`:   "My Footnote"              
  `expected[[1]]`: ""            "My Footnote"
  ── Failure ('test-word.R:1349:3'): tables with cell & text coloring can be added to a word doc - with source_notes and footnotes ──
  lapply(...) (`actual`) not equal to list(...) (`expected`).
  
  `actual[[1]][[1]]`:   "A020F0"         
  `expected[[1]][[1]]`: "A020F0" "A020F0"
  
  [ FAIL 5 | WARN 520 | SKIP 3 | PASS 36 ]
  Error: Test failures
  Execution halted