Running ‘testthat.R’ [29s/39s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(huxtable)
  > 
  > 
  > we_are_in_R_CMD_check <- TRUE
  > test_check("huxtable")
  ── 1. Error: Can add row(s) to a huxtable by standard replacement methods (@test
  replacement has 3 rows, data has 2
  1: expect_silent(ht[3, ] <- c(3, 3)) at testthat/test-object-manipulation.R:316
  2: quasi_capture(enquo(object), evaluate_promise)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: withr::with_output_sink(temp, withCallingHandlers(withVisible(code), warning = handle_warning, 
         message = handle_message))
  5: force(code)
  6: withCallingHandlers(withVisible(code), warning = handle_warning, message = handle_message)
  7: withVisible(code)
  8: eval_bare(get_expr(quo), get_env(quo))
  9: `[<-`(`*tmp*`, 3, , value = c(3, 3))
  10: `[<-.huxtable`(`*tmp*`, 3, , value = c(3, 3))
  11: as.data.frame(NextMethod())
  12: NextMethod()
  13: `[<-.data.frame`(`*tmp*`, 3, , value = c(3, 3))
  14: xpdrows.data.frame(x, rows, new.rows)
  15: `[[<-`(`*tmp*`, i, value = c(1L, 2L, NA))
  16: `[[<-.huxtable`(`*tmp*`, i, value = c(1L, 2L, NA))
  17: as.data.frame(NextMethod())
  18: NextMethod()
  19: `[[<-.data.frame`(`*tmp*`, i, value = c(1L, 2L, NA))
  20: stop(sprintf(ngettext(N, "replacement has %d row, data has %d", "replacement has %d rows, data has %d"), 
         N, nrows), domain = NA)
  
  [WARNING] This document format requires a nonempty <title> element.
    Please specify either 'title' or 'pagetitle' in the metadata.
    Falling back to 'file619b1a3ea4df.utf8'
  [WARNING] This document format requires a nonempty <title> element.
    Please specify either 'title' or 'pagetitle' in the metadata.
    Falling back to 'file619b1b6b4614.utf8'
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 728 SKIPPED: 57 FAILED: 1
  1. Error: Can add row(s) to a huxtable by standard replacement methods (@test-object-manipulation.R#316) 
  
  Error: testthat unit tests failed
  Execution halted