Running 'testthat.R' [15s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > #This file runs all unit tests on every R CMD check.
  > #Comment this out to disable.
  > 
  > library(testthat)
  > 
  > #filter is to disable tests that rely on external servers
  > test_check("jsonlite", filter="toJSON|fromJSON|libjson|serializeJSON")
  Loading required package: jsonlite
  -- FAILURE (test-serializeJSON-functions.R:20:3): Serializing Functions --------
  `x` not equal to `expected`.
  Names: 1 string mismatch
  Component 1: Modes: numeric, list
  Component 1: Lengths: 626, 4
  Component 1: target is numeric, current is list
  
  -- FAILURE (test-serializeJSON-functions.R:20:3): Serializing Functions --------
  `x` not equal to `expected`.
  Names: 1 string mismatch
  Component 1: Modes: numeric, list
  Component 1: Lengths: 626, 4
  Component 1: target is numeric, current is list
  
  -- FAILURE (test-serializeJSON-functions.R:20:3): Serializing Functions --------
  `x` not equal to `expected`.
  Names: 1 string mismatch
  Component 1: Modes: numeric, list
  Component 1: Lengths: 626, 4
  Component 1: target is numeric, current is list
  
  -- FAILURE (test-serializeJSON-functions.R:20:3): Serializing Functions --------
  `x` not equal to `expected`.
  Names: 1 string mismatch
  Length mismatch: comparison on first 1 components
  Component 1: Modes: numeric, function
  Component 1: Lengths: 626, 1
  Component 1: target is numeric, current is function
  
  -- FAILURE (test-serializeJSON-functions.R:25:3): Serializing Functions --------
  `x` not equal to `expected`.
  Component 1: Names: 1 string mismatch
  Component 1: Component 1: Modes: numeric, list
  Component 1: Component 1: Lengths: 626, 4
  Component 1: Component 1: target is numeric, current is list
  Component 2: Names: 1 string mismatch
  Component 2: Component 1: Modes: numeric, list
  Component 2: Component 1: Lengths: 626, 4
  Component 2: Component 1: target is numeric, current is list
  Component 3: Names: 1 string mismatch
  ...
  
  == testthat results  ===========================================================
  FAILURE (test-serializeJSON-functions.R:20:3): Serializing Functions
  FAILURE (test-serializeJSON-functions.R:20:3): Serializing Functions
  FAILURE (test-serializeJSON-functions.R:20:3): Serializing Functions
  FAILURE (test-serializeJSON-functions.R:20:3): Serializing Functions
  FAILURE (test-serializeJSON-functions.R:25:3): Serializing Functions
  
  [ FAIL 5 | WARN 0 | SKIP 0 | PASS 1500 ]
  Error: Test failures
  Execution halted