Running ‘testInteractive.R’ [1s/1s]
  Running ‘testthat.R’ [5s/7s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library('testthat')
  > 
  > test_check('htmlTable')
  Loading required package: htmlTable
  ── 1. Failure: The total should be added to the output if used with addmargins (
  `total_out` does not match "<td[^>]+background: purple[^>]+>[^>]*Sum</td>".
  Actual value: "<table class='gmisc_table' style='border-collapse: collapse; margin-top: 1em; margin-bottom: 1em;' >\\n<thead>\\n<tr>\\n<th style='border-top: 2px solid grey;'></th>\\n<th colspan='3' style='font-weight: 900; border-bottom: 1px solid grey; border-top: 2px solid grey; text-align: center;'>var2</th>\\n</tr>\\n<tr>\\n<th style='border-bottom: 1px solid grey;'> </th>\\n<th style='border-bottom: 1px solid grey; text-align: center;'>D</th>\\n<th style='border-bottom: 1px solid grey; text-align: center;'>E</th>\\n<th style='border-bottom: 1px solid grey; text-align: center;'>Sum</th>\\n</tr>\\n</thead>\\n<tbody> \\n<tr><td colspan='4' style='font-weight: 900;'>var1</td></tr>\\n<tr>\\n<td style='text-align: left;'>&nbsp;&nbsp;A</td>\\n<td style='text-align: center;'>1</td>\\n<td style='text-align: center;'>0</td>\\n<td style='text-align: center;'>1</td>\\n</tr>\\n<tr>\\n<td style='text-align: left;'>&nbsp;&nbsp;B</td>\\n<td style='text-align: center;'>0</td>\\n<td style='text-align: center;'>1</td>\\n<td style='text-align: center;'>1</td>\\n</tr>\\n<tr>\\n<td style='text-align: left;'>&nbsp;&nbsp;C</td>\\n<td style='text-align: center;'>0</td>\\n<td style='text-align: center;'>1</td>\\n<td style='text-align: center;'>1</td>\\n</tr>\\n<tr>\\n<td style='border-bottom: 2px solid grey; text-align: left;'>&nbsp;&nbsp;Sum</td>\\n<td style='border-bottom: 2px solid grey; text-align: center;'>1</td>\\n<td style='border-bottom: 2px solid grey; text-align: center;'>2</td>\\n<td style='border-bottom: 2px solid grey; text-align: center;'>3</td>\\n</tr>\\n</tbody>\\n</table>"
  Expect the variable name to appear as a cgroup
  
  ── 2. Failure: The total should be added to the output if used with addmargins (
  `total_out` does not match "<th colspan='2'[^>]*>var2".
  Actual value: "<table class='gmisc_table' style='border-collapse: collapse; margin-top: 1em; margin-bottom: 1em;' >\\n<thead>\\n<tr>\\n<th style='border-top: 2px solid grey;'></th>\\n<th colspan='3' style='font-weight: 900; border-bottom: 1px solid grey; border-top: 2px solid grey; text-align: center;'>var2</th>\\n</tr>\\n<tr>\\n<th style='border-bottom: 1px solid grey;'> </th>\\n<th style='border-bottom: 1px solid grey; text-align: center;'>D</th>\\n<th style='border-bottom: 1px solid grey; text-align: center;'>E</th>\\n<th style='border-bottom: 1px solid grey; text-align: center;'>Sum</th>\\n</tr>\\n</thead>\\n<tbody> \\n<tr><td colspan='4' style='font-weight: 900;'>var1</td></tr>\\n<tr>\\n<td style='text-align: left;'>&nbsp;&nbsp;A</td>\\n<td style='text-align: center;'>1</td>\\n<td style='text-align: center;'>0</td>\\n<td style='text-align: center;'>1</td>\\n</tr>\\n<tr>\\n<td style='text-align: left;'>&nbsp;&nbsp;B</td>\\n<td style='text-align: center;'>0</td>\\n<td style='text-align: center;'>1</td>\\n<td style='text-align: center;'>1</td>\\n</tr>\\n<tr>\\n<td style='text-align: left;'>&nbsp;&nbsp;C</td>\\n<td style='text-align: center;'>0</td>\\n<td style='text-align: center;'>1</td>\\n<td style='text-align: center;'>1</td>\\n</tr>\\n<tr>\\n<td style='border-bottom: 2px solid grey; text-align: left;'>&nbsp;&nbsp;Sum</td>\\n<td style='border-bottom: 2px solid grey; text-align: center;'>1</td>\\n<td style='border-bottom: 2px solid grey; text-align: center;'>2</td>\\n<td style='border-bottom: 2px solid grey; text-align: center;'>3</td>\\n</tr>\\n</tbody>\\n</table>"
  Expect the variable name to appear as a cgroup
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 460 | SKIPPED: 1 | WARNINGS: 1 | FAILED: 2 ]
  1. Failure: The total should be added to the output if used with addmargins (@test-htmlTable_total.R#69) 
  2. Failure: The total should be added to the output if used with addmargins (@test-htmlTable_total.R#72) 
  
  Error: testthat unit tests failed
  Execution halted