Running ‘test-all.R’ [17s/21s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > library(testthat)
  > 
  > test_check("biogram")
  Loading required package: biogram
  Loading required package: slam
  ── 1. Failure: Extract ngrams for different distances (@test_position_ngrams.R#6
  position_ngrams("2_1.1.2_0.1") not equal to structure(...).
  Component "2": Modes: character, numeric
  Component "2": Attributes: < target is NULL, current is list >
  Component "2": target is character, current is factor
  Component "3": Modes: character, numeric
  Component "3": Attributes: < target is NULL, current is list >
  Component "3": target is character, current is factor
  Component "5": Modes: character, numeric
  Component "5": Attributes: < target is NULL, current is list >
  Component "5": target is character, current is factor
  
  ── 2. Failure: Extract ngrams for different distances (@test_position_ngrams.R#1
  position_ngrams(c("2_1.1.2_0.1", "3_1.1.2_0.0", "3_2.2.2_0.0")) not equal to structure(...).
  Component "2": Modes: character, numeric
  Component "2": Attributes: < target is NULL, current is list >
  Component "2": target is character, current is factor
  Component "3": Modes: character, numeric
  Component "3": Attributes: < target is NULL, current is list >
  Component "3": target is character, current is factor
  Component "4": Modes: character, numeric
  Component "4": Attributes: < target is NULL, current is list >
  Component "4": target is character, current is factor
  ...
  
  ── 3. Failure: Extract ngrams for different distances (@test_position_ngrams.R#2
  position_ngrams(c("2_1.1.2_0.1", "7_1.1.2_0.0", "10_2.2.2_0.0")) not equal to structure(...).
  Component "2": Modes: character, numeric
  Component "2": Attributes: < target is NULL, current is list >
  Component "2": target is character, current is factor
  Component "3": Modes: character, numeric
  Component "3": Attributes: < target is NULL, current is list >
  Component "3": target is character, current is factor
  Component "5": Modes: character, numeric
  Component "5": Attributes: < target is NULL, current is list >
  Component "5": target is character, current is factor
  ...
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 43 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 3 ]
  1. Failure: Extract ngrams for different distances (@test_position_ngrams.R#6) 
  2. Failure: Extract ngrams for different distances (@test_position_ngrams.R#13) 
  3. Failure: Extract ngrams for different distances (@test_position_ngrams.R#21) 
  
  Error: testthat unit tests failed
  Execution halted