Running 'testthat.R' [3s/4s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(formattable)
  > 
  > test_check("formattable")
  == Skipped tests ===============================================================
  * empty test (1)
  
  == Failed tests ================================================================
  -- Failure (test-formats.R:66:3): currency -------------------------------------
  currency("$ 123,234.50") not equal to currency(123234.5).
  Attributes: < Component "formattable": Component "postproc": Names: 6 string mismatches >
  Attributes: < Component "formattable": Component "postproc": Length mismatch: comparison on first 7 components >
  Attributes: < Component "formattable": Component "postproc": Component 2: Modes: character, NULL >
  Attributes: < Component "formattable": Component "postproc": Component 2: Lengths: 1, 0 >
  Attributes: < Component "formattable": Component "postproc": Component 2: target is character, current is NULL >
  Attributes: < Component "formattable": Component "postproc": Component 3: Modes: numeric, character >
  Attributes: < Component "formattable": Component "postproc": Component 3: target is numeric, current is character >
  Attributes: < Component "formattable": Component "postproc": Component 4: Modes: character, environment >
  Attributes: < Component "formattable": Component "postproc": Component 4: Lengths: 1, 2 >
  Attributes: < Component "formattable": Component "postproc": Component 4: names for current but not for target >
  Attributes: < Component "formattable": Component "postproc": Component 4: target is character, current is environment >
  Attributes: < Component "formattable": Component "postproc": Component 5: Modes: character, environment >
  Attributes: < Component "formattable": Component "postproc": Component 5: Lengths: 1, 123 >
  Attributes: < Component "formattable": Component "postproc": Component 5: names for current but not for target >
  Attributes: < Component "formattable": Component "postproc": Component 5: target is character, current is environment >
  Attributes: < Component "formattable": Component "postproc": Component 6: 1 string mismatch >
  Attributes: < Component "formattable": Component "postproc": Component 7: Modes: numeric, character >
  Attributes: < Component "formattable": Component "postproc": Component 7: target is numeric, current is character >
  -- Failure (test-formats.R:67:3): currency -------------------------------------
  currency(c("$ 123,234.50", "$123.503")) not equal to currency(c(123234.5, 123.503), digits = 3).
  Attributes: < Component "formattable": Component "postproc": Names: 6 string mismatches >
  Attributes: < Component "formattable": Component "postproc": Length mismatch: comparison on first 7 components >
  Attributes: < Component "formattable": Component "postproc": Component 2: Modes: character, NULL >
  Attributes: < Component "formattable": Component "postproc": Component 2: Lengths: 1, 0 >
  Attributes: < Component "formattable": Component "postproc": Component 2: target is character, current is NULL >
  Attributes: < Component "formattable": Component "postproc": Component 3: Modes: numeric, character >
  Attributes: < Component "formattable": Component "postproc": Component 3: target is numeric, current is character >
  Attributes: < Component "formattable": Component "postproc": Component 4: Modes: character, environment >
  Attributes: < Component "formattable": Component "postproc": Component 4: Lengths: 1, 2 >
  Attributes: < Component "formattable": Component "postproc": Component 4: names for current but not for target >
  Attributes: < Component "formattable": Component "postproc": Component 4: target is character, current is environment >
  Attributes: < Component "formattable": Component "postproc": Component 5: Modes: character, environment >
  Attributes: < Component "formattable": Component "postproc": Component 5: Lengths: 1, 123 >
  Attributes: < Component "formattable": Component "postproc": Component 5: names for current but not for target >
  Attributes: < Component "formattable": Component "postproc": Component 5: target is character, current is environment >
  Attributes: < Component "formattable": Component "postproc": Component 6: 1 string mismatch >
  Attributes: < Component "formattable": Component "postproc": Component 7: Modes: numeric, character >
  Attributes: < Component "formattable": Component "postproc": Component 7: Lengths: 2, 1 >
  Attributes: < Component "formattable": Component "postproc": Component 7: target is numeric, current is character >
  -- Failure (test-formats.R:69:3): currency -------------------------------------
  currency(c("HK$ 123,234.50", "HK$ 123.503"), symbol = "HK$") not equal to currency(c(123234.5, 123.503), symbol = "HK$", digits = 3).
  Attributes: < Component "formattable": Component "postproc": Names: 6 string mismatches >
  Attributes: < Component "formattable": Component "postproc": Length mismatch: comparison on first 7 components >
  Attributes: < Component "formattable": Component "postproc": Component 2: Modes: character, NULL >
  Attributes: < Component "formattable": Component "postproc": Component 2: Lengths: 1, 0 >
  Attributes: < Component "formattable": Component "postproc": Component 2: target is character, current is NULL >
  Attributes: < Component "formattable": Component "postproc": Component 3: Modes: numeric, character >
  Attributes: < Component "formattable": Component "postproc": Component 3: target is numeric, current is character >
  Attributes: < Component "formattable": Component "postproc": Component 4: Modes: character, environment >
  Attributes: < Component "formattable": Component "postproc": Component 4: Lengths: 1, 2 >
  Attributes: < Component "formattable": Component "postproc": Component 4: names for current but not for target >
  Attributes: < Component "formattable": Component "postproc": Component 4: target is character, current is environment >
  Attributes: < Component "formattable": Component "postproc": Component 5: Modes: character, environment >
  Attributes: < Component "formattable": Component "postproc": Component 5: Lengths: 1, 123 >
  Attributes: < Component "formattable": Component "postproc": Component 5: names for current but not for target >
  Attributes: < Component "formattable": Component "postproc": Component 5: target is character, current is environment >
  Attributes: < Component "formattable": Component "postproc": Component 6: 1 string mismatch >
  Attributes: < Component "formattable": Component "postproc": Component 7: Modes: numeric, character >
  Attributes: < Component "formattable": Component "postproc": Component 7: Lengths: 2, 1 >
  Attributes: < Component "formattable": Component "postproc": Component 7: target is numeric, current is character >
  -- Failure (test-formats.R:71:3): currency -------------------------------------
  currency(c("HK$ 123,234.50", "HK$ 123.503")) not equal to currency(c(123234.5, 123.503), symbol = "HK$", digits = 3).
  Attributes: < Component "formattable": Component "postproc": Names: 6 string mismatches >
  Attributes: < Component "formattable": Component "postproc": Length mismatch: comparison on first 7 components >
  Attributes: < Component "formattable": Component "postproc": Component 2: Modes: character, NULL >
  Attributes: < Component "formattable": Component "postproc": Component 2: Lengths: 1, 0 >
  Attributes: < Component "formattable": Component "postproc": Component 2: target is character, current is NULL >
  Attributes: < Component "formattable": Component "postproc": Component 3: Modes: numeric, character >
  Attributes: < Component "formattable": Component "postproc": Component 3: target is numeric, current is character >
  Attributes: < Component "formattable": Component "postproc": Component 4: Modes: character, environment >
  Attributes: < Component "formattable": Component "postproc": Component 4: Lengths: 1, 2 >
  Attributes: < Component "formattable": Component "postproc": Component 4: names for current but not for target >
  Attributes: < Component "formattable": Component "postproc": Component 4: target is character, current is environment >
  Attributes: < Component "formattable": Component "postproc": Component 5: Modes: character, environment >
  Attributes: < Component "formattable": Component "postproc": Component 5: Lengths: 1, 123 >
  Attributes: < Component "formattable": Component "postproc": Component 5: names for current but not for target >
  Attributes: < Component "formattable": Component "postproc": Component 5: target is character, current is environment >
  Attributes: < Component "formattable": Component "postproc": Component 6: 1 string mismatch >
  Attributes: < Component "formattable": Component "postproc": Component 7: Modes: numeric, character >
  Attributes: < Component "formattable": Component "postproc": Component 7: Lengths: 2, 1 >
  Attributes: < Component "formattable": Component "postproc": Component 7: target is numeric, current is character >
  
  [ FAIL 4 | WARN 0 | SKIP 1 | PASS 254 ]
  Error: Test failures
  Execution halted