Running ‘testthat.R’ [110s/189s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(lidaRtRee)
  > 
  > test_check("lidaRtRee")
  Reordering variables and trying again:
  Negative or NA observations of dependent variable have been removed
  Reordering variables and trying again:
  Reordering variables and trying again:
  Reordering variables and trying again:
  Reordering variables and trying again:
  Reordering variables and trying again:
  Reordering variables and trying again:
  Reordering variables and trying again:
  Reordering variables and trying again:
  Reordering variables and trying again:
  Reordering variables and trying again:
  Reordering variables and trying again:
  Reordering variables and trying again:
  Reordering variables and trying again:
  Creation of a LAS object from data but without a header:
  Scale factors were set to 0.001 and XYZ coordinates were quantized to fit the scale factors.
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • empty test (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_metrics.R:57:3): terrain_points_metrics ─────────────────────────
  Error in `(function (cl, name, valueClass) 
  {
      ClassDef <- getClass(cl)
      slotClass <- ClassDef@slots[[name]]
      if (is.null(slotClass)) 
          stop(gettextf("%s is not a slot in class %s", sQuote(name), 
              dQuote(cl)), domain = NA)
      if (.identC(slotClass, valueClass)) 
          return(TRUE)
      ok <- possibleExtends(valueClass, slotClass, ClassDef2 = getClassDef(slotClass, 
          where = .classEnv(ClassDef)))
      if (isFALSE(ok)) 
          stop(gettextf("assignment of an object of class %s is not valid for @%s in an object of class %s; is(value, \"%s\") is not TRUE", 
              dQuote(valueClass), sQuote(name), dQuote(cl), slotClass), 
              domain = NA)
      TRUE
  })(structure("LAS", package = "lidR"), "proj4string", "logical")`: assignment of an object of class "logical" is not valid for @'proj4string' in an object of class "LAS"; is(value, "CRS") is not TRUE
  Backtrace:
      █
   1. └─lidaRtRee::terrain_points_metrics(XYZ) test_metrics.R:57:2
   2.   └─lidR::LAS(...)
   3.     └─(function (cl, name, valueClass) ...
  
  [ FAIL 1 | WARN 18 | SKIP 1 | PASS 94 ]
  Error: Test failures
  Execution halted