Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(rapidraker)
  > 
  > test_check("rapidraker")
  ── 1. Error: rapidrake works for non-atomic, non-empty char vectors (@test-rapid
  class not found
  1: rapidrake(slowraker::dog_pubs$abstract[1:10]) at testthat/test-rapidrake.R:4
  2: rJava::new(rJava::J("io.github.crew102.rapidrake.RakeAlgorithm"), rake_params, system.file("models/en-pos-maxent.bin", 
         package = "openNLPdata"), system.file("models/en-sent.bin", package = "openNLPdata"))
  3: rJava::J("io.github.crew102.rapidrake.RakeAlgorithm")
  4: jclassName(class)
  5: .jfindClass(as.character(class))
  6: stop("class not found")
  
  ── 2. Error: rapidrake returns a score when there is only one word in txt (@test
  class not found
  1: rapidrake("dog") at testthat/test-rapidrake.R:9
  2: rJava::new(rJava::J("io.github.crew102.rapidrake.RakeAlgorithm"), rake_params, system.file("models/en-pos-maxent.bin", 
         package = "openNLPdata"), system.file("models/en-sent.bin", package = "openNLPdata"))
  3: rJava::J("io.github.crew102.rapidrake.RakeAlgorithm")
  4: jclassName(class)
  5: .jfindClass(as.character(class))
  6: stop("class not found")
  
  ── 3. Error: rapidrake works for txt without alpha chars (@test-rapidrake.R#14) 
  class not found
  1: rapidrake("") at testthat/test-rapidrake.R:14
  2: rJava::new(rJava::J("io.github.crew102.rapidrake.RakeAlgorithm"), rake_params, system.file("models/en-pos-maxent.bin", 
         package = "openNLPdata"), system.file("models/en-sent.bin", package = "openNLPdata"))
  3: rJava::J("io.github.crew102.rapidrake.RakeAlgorithm")
  4: jclassName(class)
  5: .jfindClass(as.character(class))
  6: stop("class not found")
  
  ── 4. Error: rapidrake works when all txt is removed based on POS tags (@test-ra
  class not found
  1: rapidrake("walking") at testthat/test-rapidrake.R:19
  2: rJava::new(rJava::J("io.github.crew102.rapidrake.RakeAlgorithm"), rake_params, system.file("models/en-pos-maxent.bin", 
         package = "openNLPdata"), system.file("models/en-sent.bin", package = "openNLPdata"))
  3: rJava::J("io.github.crew102.rapidrake.RakeAlgorithm")
  4: jclassName(class)
  5: .jfindClass(as.character(class))
  6: stop("class not found")
  
  ── 5. Error: rapidrake can hanlde non-array params (@test-rapidrake.R#24)  ─────
  class not found
  1: rapidrake("hi there old friend", stop_words = "", stop_pos = "NNS") at testthat/test-rapidrake.R:24
  2: rJava::new(rJava::J("io.github.crew102.rapidrake.RakeAlgorithm"), rake_params, system.file("models/en-pos-maxent.bin", 
         package = "openNLPdata"), system.file("models/en-sent.bin", package = "openNLPdata"))
  3: rJava::J("io.github.crew102.rapidrake.RakeAlgorithm")
  4: jclassName(class)
  5: .jfindClass(as.character(class))
  6: stop("class not found")
  
  ── 6. Error: rapidrake removes stop words (@test-rapidrake.R#29)  ──────────────
  class not found
  1: rapidrake("dogs", stop_words = "dogs") at testthat/test-rapidrake.R:29
  2: rJava::new(rJava::J("io.github.crew102.rapidrake.RakeAlgorithm"), rake_params, system.file("models/en-pos-maxent.bin", 
         package = "openNLPdata"), system.file("models/en-sent.bin", package = "openNLPdata"))
  3: rJava::J("io.github.crew102.rapidrake.RakeAlgorithm")
  4: jclassName(class)
  5: .jfindClass(as.character(class))
  6: stop("class not found")
  
  ── 7. Error: pos stopping works as expected (@test-rapidrake.R#34)  ────────────
  class not found
  1: rapidrake("dogs are awesome", stop_pos = "NNS", word_min_char = 0, stop_words = "") at testthat/test-rapidrake.R:34
  2: rJava::new(rJava::J("io.github.crew102.rapidrake.RakeAlgorithm"), rake_params, system.file("models/en-pos-maxent.bin", 
         package = "openNLPdata"), system.file("models/en-sent.bin", package = "openNLPdata"))
  3: rJava::J("io.github.crew102.rapidrake.RakeAlgorithm")
  4: jclassName(class)
  5: .jfindClass(as.character(class))
  6: stop("class not found")
  
  ── 8. Error: word_min_char filtering works as expected (@test-rapidrake.R#41)  ─
  class not found
  1: rapidrake("dogs", word_min_char = 5) at testthat/test-rapidrake.R:41
  2: rJava::new(rJava::J("io.github.crew102.rapidrake.RakeAlgorithm"), rake_params, system.file("models/en-pos-maxent.bin", 
         package = "openNLPdata"), system.file("models/en-sent.bin", package = "openNLPdata"))
  3: rJava::J("io.github.crew102.rapidrake.RakeAlgorithm")
  4: jclassName(class)
  5: .jfindClass(as.character(class))
  6: stop("class not found")
  
  ── 9. Error: phrase_delims works as expected (@test-rapidrake.R#46)  ───────────
  class not found
  1: rapidrake("dogs are great, arn't they? at least i think they are.", stop_words = NULL, 
         stop_pos = NULL, phrase_delims = "[.]", word_min_char = 0) at testthat/test-rapidrake.R:46
  2: rJava::new(rJava::J("io.github.crew102.rapidrake.RakeAlgorithm"), rake_params, system.file("models/en-pos-maxent.bin", 
         package = "openNLPdata"), system.file("models/en-sent.bin", package = "openNLPdata"))
  3: rJava::J("io.github.crew102.rapidrake.RakeAlgorithm")
  4: jclassName(class)
  5: .jfindClass(as.character(class))
  6: stop("class not found")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 0 SKIPPED: 0 FAILED: 9
  1. Error: rapidrake works for non-atomic, non-empty char vectors (@test-rapidrake.R#4) 
  2. Error: rapidrake returns a score when there is only one word in txt (@test-rapidrake.R#9) 
  3. Error: rapidrake works for txt without alpha chars (@test-rapidrake.R#14) 
  4. Error: rapidrake works when all txt is removed based on POS tags (@test-rapidrake.R#19) 
  5. Error: rapidrake can hanlde non-array params (@test-rapidrake.R#24) 
  6. Error: rapidrake removes stop words (@test-rapidrake.R#29) 
  7. Error: pos stopping works as expected (@test-rapidrake.R#34) 
  8. Error: word_min_char filtering works as expected (@test-rapidrake.R#41) 
  9. Error: phrase_delims works as expected (@test-rapidrake.R#46) 
  
  Error: testthat unit tests failed
  Execution halted