Running ‘test-all.R’ [1s/1s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > if (require("testthat") && packageVersion("testthat") >= "0.9") {
  +     test_check("polyCub")
  + }
  Loading required package: testthat
  Loading required package: polyCub
  Loading required package: sp
  ── 1. Error: (unknown) (@test-polyCub.R#13)  ───────────────────────────────────
  there is no package called 'spatstat'
  1: spatstat::disc at testthat/test-polyCub.R:13
  2: getExportedValue(pkg, name)
  3: asNamespace(ns)
  4: getNamespace(ns)
  5: tryCatch(loadNamespace(name), error = function(e) stop(e))
  6: tryCatchList(expr, classes, parentenv, handlers)
  7: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  8: value[[3L]](cond)
  
  make[1]: Entering directory '/home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/polyCub.Rcheck/tests/testthat'
  clang-6.0 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG -I/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/polyCub/include  -I/usr/local/include   -fpic  -g -O3 -Wall -pedantic -mtune=native -c polyiso_powerlaw.c -o polyiso_powerlaw.o
  clang++-6.0 -std=c++98 -shared -L/home/hornik/tmp/R.check/r-devel-clang/Work/build/lib -Wl,-O1 -o polyiso_powerlaw.so polyiso_powerlaw.o -L/home/hornik/tmp/R.check/r-devel-clang/Work/build/lib -lR
  make[1]: Leaving directory '/home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/polyCub.Rcheck/tests/testthat'
  make[1]: Entering directory '/home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/polyCub.Rcheck/tests/testthat'
  make[1]: Leaving directory '/home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/polyCub.Rcheck/tests/testthat'
  make[1]: Entering directory '/home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/polyCub.Rcheck/tests/testthat'
  make[1]: Leaving directory '/home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/polyCub.Rcheck/tests/testthat'
  ── 2. Error: (unknown) (@test-regression.R#3)  ─────────────────────────────────
  there is no package called 'spatstat'
  1: spatstat::disc at testthat/test-regression.R:3
  2: getExportedValue(pkg, name)
  3: asNamespace(ns)
  4: getNamespace(ns)
  5: tryCatch(loadNamespace(name), error = function(e) stop(e))
  6: tryCatchList(expr, classes, parentenv, handlers)
  7: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  8: value[[3L]](cond)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 3 SKIPPED: 0 FAILED: 2
  1. Error: (unknown) (@test-polyCub.R#13) 
  2. Error: (unknown) (@test-regression.R#3) 
  
  Error: testthat unit tests failed
  Execution halted