Running ‘test-all.R’ [48s/67s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > library(testthat)
  > test_check("letsR")
  Loading required package: letsR
  Loading required package: raster
  Loading required package: sp
  Loading required package: maps
  ── 1. Failure: Other parameters work (@test-TimLucas.r#76)  ────────────────────
  class(PresAbMat4) not equal to "matrix".
  Lengths differ: 2 is not 1
  
  ── 2. Failure: lets.addpoly works fine, onlyvar = FALSE (@test-lets_addpoly.R#11
  class(resu_test) not equal to "matrix".
  Lengths differ: 2 is not 1
  
  ── 3. Failure: lets.addpoly works fine, onlyvar = TRUE (@test-lets_addpoly.R#18)
  class(resu_test) not equal to "matrix".
  Lengths differ: 2 is not 1
  
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  Error in x$.self$finalize() : attempt to apply non-function
  ── 4. Failure: lets.addvar works fine (@test-lets_addvar.R#11)  ────────────────
  class(PAM_temp_mean) == "matrix" isn't true.
  
  ── 5. Failure: lets.addvar works fine, different fun (@test-lets_addvar.R#20)  ─
  class(PAM_temp_mean) == "matrix" isn't true.
  
  ── 6. Failure: lets.addvar works fine, onlyvar = TRUE (@test-lets_addvar.R#29)  
  class(PAM_temp_mean) == "matrix" isn't true.
  
  ── 7. Failure: lets.addvar works fine, multiple rasters (@test-lets_addvar.R#38)
  class(PAM_temp_mean) == "matrix" isn't true.
  
  ── 8. Failure: lets.addpoly lets.classvar fine (@test-lets_classvar.R#13)  ─────
  class(resu_test) not equal to "matrix".
  Lengths differ: 2 is not 1
  
  ── 9. Failure: lets.addpoly lets.classvar fine, xy = FALSE (@test-lets_classvar.
  class(resu_test) not equal to "matrix".
  Lengths differ: 2 is not 1
  
  ── 10. Failure: lets.addpoly lets.classvar fine, set groups (@test-lets_classvar
  class(resu_test) not equal to "matrix".
  Lengths differ: 2 is not 1
  
  ── 11. Failure: lets.correl works fine (@test-lets_correl.R#13)  ───────────────
  class(correl) == "matrix" isn't true.
  
  ── 12. Failure: lets.correl works fine, equidistant = TRUE (@test-lets_correl.R#
  class(correl) == "matrix" isn't true.
  
  ── 13. Failure: lets.correl works fine, plot = TRUE (@test-lets_correl.R#27)  ──
  class(correl) == "matrix" isn't true.
  
  ── 14. Failure: lets.correl works fine, matrix (@test-lets_correl.R#35)  ───────
  class(correl) == "matrix" isn't true.
  
  ── 15. Failure: lets.correl works fine, multiple (@test-lets_correl.R#42)  ─────
  class(correl) == "matrix" isn't true.
  
  ── 16. Failure: lets.distmat works fine, asdist = FALSE (@test-lets_distmat.R#22
  class(distPAM) == "matrix" isn't true.
  
  ── 17. Failure: lets.gridirizer works fine (@test-lets_gridirizer.R#11)  ───────
  class(resu_test[[2]]) not equal to "matrix".
  Lengths differ: 2 is not 1
  
  ── 18. Failure: lets.maplizer works fine (@test-lets_maplizer.R#10)  ───────────
  class(resu_test) not equal to "matrix".
  Lengths differ: 2 is not 1
  
  ── 19. Failure: lets.maplizer works fine, other func (@test-lets_maplizer.R#17) 
  class(resu_test) not equal to "matrix".
  Lengths differ: 2 is not 1
  
  ── 20. Failure: lets.maplizer works fine (@test-lets_maplizer.R#25)  ───────────
  class(resu_test[[1]]) not equal to "matrix".
  Lengths differ: 2 is not 1
  
  ── 21. Failure: lets.overlap works fine, Chesser&Zink (@test-lets_overlap.R#11) 
  class(resu_test) not equal to "matrix".
  Lengths differ: 2 is not 1
  
  ── 22. Failure: lets.overlap works fine, xy = FALSE (@test-lets_overlap.R#24)  ─
  class(resu_test) not equal to "matrix".
  Lengths differ: 2 is not 1
  
  ── 23. Failure: lets.overlap works fine, xy = TRUE (@test-lets_overlap.R#37)  ──
  class(resu_test) not equal to "matrix".
  Lengths differ: 2 is not 1
  
  ── 24. Failure: lets.overlap works fine, Cells (@test-lets_overlap.R#47)  ──────
  class(resu_test) not equal to "matrix".
  Lengths differ: 2 is not 1
  
  ── 25. Failure: lets.overlap works fine, Proportional (@test-lets_overlap.R#57) 
  class(resu_test) not equal to "matrix".
  Lengths differ: 2 is not 1
  
  ── 26. Failure: lets.pamcrop works fine, remove.sp = TRUE (@test-lets_pamcrop.R#
  class(resu_test[[1]]) not equal to "matrix".
  Lengths differ: 2 is not 1
  
  ── 27. Failure: lets.pamcrop works fine, remove.sp = FALSE (@test-lets_pamcrop.R
  class(resu_test[[1]]) not equal to "matrix".
  Lengths differ: 2 is not 1
  
  ── 28. Failure: lets.presab.birds return a correct PresenceAbsence object (@test
  class(PAM[[1]]) not equal to "matrix".
  Lengths differ: 2 is not 1
  
  ── 29. Failure: lets.presab.grid works fine (@test-lets_presab_grid.R#16)  ─────
  class(resu[[1]]) not equal to "matrix".
  Lengths differ: 2 is not 1
  
  ── 30. Failure: lets.presab.points return a correct PresenceAbsence object (@tes
  class(PAM[[1]]) not equal to "matrix".
  Lengths differ: 2 is not 1
  
  ── 31. Failure: lets.presab.points return a correct PresenceAbsence object for t
  class(PAM[[1]]) not equal to "matrix".
  Lengths differ: 2 is not 1
  
  ── 32. Failure: lets.presab.points return a correct PresenceAbsence object (coun
  class(PAM[[1]]) not equal to "matrix".
  Lengths differ: 2 is not 1
  
  ── 33. Failure: lets.presab.points return a correct PresenceAbsence object, remo
  class(PAM[[1]]) not equal to "matrix".
  Lengths differ: 2 is not 1
  
  ── 34. Failure: lets.presab.points return a correct PresenceAbsence object, remo
  class(PAM[[1]]) not equal to "matrix".
  Lengths differ: 2 is not 1
  
  ── 35. Failure: lets.rangesize works fine, geographic (@test-lets_rangesize.R#13
  class(resu_test) not equal to "matrix".
  Lengths differ: 2 is not 1
  
  ── 36. Failure: lets.rangesize works fine, planar (@test-lets_rangesize.R#25)  ─
  class(resu_test) not equal to "matrix".
  Lengths differ: 2 is not 1
  
  ── 37. Failure: lets.rangesize works fine, squaremeter (@test-lets_rangesize.R#3
  class(resu_test) not equal to "matrix".
  Lengths differ: 2 is not 1
  
  ── 38. Failure: lets.rangesize works fine, squaremeter (@test-lets_rangesize.R#4
  class(resu_test) not equal to "matrix".
  Lengths differ: 2 is not 1
  
  ── 39. Failure: lets.rangesize works fine, squaremeter global (@test-lets_ranges
  class(resu_test) not equal to "matrix".
  Lengths differ: 2 is not 1
  
  ── 40. Failure: lets.subsetPAM works fine, remove.cells = TRUE (@test-lets_subse
  class(resu_test[[1]]) not equal to "matrix".
  Lengths differ: 2 is not 1
  
  ── 41. Failure: lets.subsetPAM works fine, remove.cells = FALSE (@test-lets_subs
  class(resu_test[[1]]) not equal to "matrix".
  Lengths differ: 2 is not 1
  
  
  Class: PresenceAbsence 
  Number of species: 32 
  Number of cells: 1168
  Resolution: 1, 1 (x, y)
  
  Class: PresenceAbsence
  _ _
  Number of species: 32 
  Number of cells: 1168
  Cells with presence: 1168
  Cells without presence: 0
  Species without presence: 0
  Species with the largest range: Phyllomedusa hypochondrialis
  _ _
  Grid parameters
  Resolution: 1, 1 (x, y)
  Extention: -93, -29, -57, 15 (xmin, xmax, ymin, ymax)
  Coord. Ref.:  +proj=longlat +datum=WGS84══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 160 | SKIPPED: 15 | WARNINGS: 48 | FAILED: 41 ]
  1. Failure: Other parameters work (@test-TimLucas.r#76) 
  2. Failure: lets.addpoly works fine, onlyvar = FALSE (@test-lets_addpoly.R#11) 
  3. Failure: lets.addpoly works fine, onlyvar = TRUE (@test-lets_addpoly.R#18) 
  4. Failure: lets.addvar works fine (@test-lets_addvar.R#11) 
  5. Failure: lets.addvar works fine, different fun (@test-lets_addvar.R#20) 
  6. Failure: lets.addvar works fine, onlyvar = TRUE (@test-lets_addvar.R#29) 
  7. Failure: lets.addvar works fine, multiple rasters (@test-lets_addvar.R#38) 
  8. Failure: lets.addpoly lets.classvar fine (@test-lets_classvar.R#13) 
  9. Failure: lets.addpoly lets.classvar fine, xy = FALSE (@test-lets_classvar.R#24) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted