Running 'testthat.R'
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(SDMtune)
  
     _____  ____   __  ___ __
    / ___/ / __ \ /  |/  // /_ __  __ ____   ___
    \__ \ / / / // /|_/ // __// / / // __ \ / _ \
   ___/ // /_/ // /  / // /_ / /_/ // / / //  __/
  /____//_____//_/  /_/ \__/ \__,_//_/ /_/ \___/  version 1.1.5
  
  To cite this package in publications type: citation("SDMtune").
  > 
  > test_check("SDMtune")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (31)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-plotPA.R:5:3): The function raises an error if argument is not a raster ──
  `plotPA(data.frame(a = 1, b = "l"))` threw an error with unexpected message.
  Expected match: "Prediction must be a RasterLayer object!"
  Actual message: "You need the packege \"rasterVis\" to run this function, please install it."
  Backtrace:
      █
   1. ├─testthat::expect_error(plotPA(data.frame(a = 1, b = "l")), "Prediction must be a RasterLayer object!") test-plotPA.R:5:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─SDMtune::plotPA(data.frame(a = 1, b = "l"))
  ── Error (test-plotPA.R:10:3): The values are correct and the file is saved with correct format ──
  Error: You need the packege "rasterVis" to run this function, please install it.
  Backtrace:
      █
   1. └─SDMtune::plotPA(map, th = 0.8, filename = file, format = "ascii") test-plotPA.R:10:2
  ── Failure (test-plotPred.R:4:3): The function raises an error if argument is not a raster ──
  `plotPred(data.frame(a = 1, b = "l"))` threw an error with unexpected message.
  Expected match: "Prediction must be a RasterLayer object!"
  Actual message: "You need the packege \"rasterVis\" to run this function, please install it."
  Backtrace:
      █
   1. ├─testthat::expect_error(...) test-plotPred.R:4:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─SDMtune::plotPred(data.frame(a = 1, b = "l"))
  ── Error (test-plotPred.R:9:3): The values are correct ─────────────────────────
  Error: You need the packege "rasterVis" to run this function, please install it.
  Backtrace:
      █
   1. └─SDMtune::plotPred(map) test-plotPred.R:9:2
  
  [ FAIL 4 | WARN 0 | SKIP 31 | PASS 355 ]
  Error: Test failures
  Execution halted