Running ‘testthat.R’ [69s/86s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(gKRLS)
  Loading required package: mgcv
  Loading required package: nlme
  This is mgcv 1.9-1. For overview type 'help("mgcv-package")'.
  Loading required package: sandwich
  > 
  > test_check("gKRLS")
  INFO  [23:02:21.388] [mlr3] Applying learner 'classif.bam' on task 'nuis_m' (iter 1/2)
  INFO  [23:02:21.866] [mlr3] Applying learner 'classif.bam' on task 'nuis_m' (iter 2/2)
  INFO  [23:02:22.307] [mlr3] Applying learner 'regr.bam' on task 'nuis_g0' (iter 1/2)
  INFO  [23:02:22.667] [mlr3] Applying learner 'regr.bam' on task 'nuis_g0' (iter 2/2)
  INFO  [23:02:23.045] [mlr3] Applying learner 'regr.bam' on task 'nuis_g1' (iter 1/2)
  INFO  [23:02:23.391] [mlr3] Applying learner 'regr.bam' on task 'nuis_g1' (iter 2/2)
  Bivariate smoothing example
  Bivariate smoothing example
  [1] "derivative"
  [1] "second_derivative"
  Distribution of Pointwise Marginal Effects: N = 200
       (Intercept)         x1          x2
  25% -0.001900025 -0.1139238 -0.07130014
  50% -0.001843025  0.0601889 -0.05431280
  75% -0.001574822  0.2717062 -0.02734085
  
  Summary of Average Marginal Effects
                       est         se       t.stat     p.value
  (Intercept) -0.001673628 0.20599894 -0.008124448 0.993526152
  x1           0.098231155 0.03707063  2.649837808 0.008725682
  x2          -0.047751134 0.03785936 -1.261276966 0.208742463
    variable       type         est         se         t     p.value
  1       x1 derivative  0.09823115 0.03707063  2.649838 0.008725682
  2       x2 derivative -0.04775113 0.03785936 -1.261277 0.208742547
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 203 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_basic_kernel.R:154:3'): Test custom vector ─────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'vctrs'
  Backtrace:
      ▆
   1. ├─testthat::expect_vector(v, size = 5) at test_basic_kernel.R:154:3
   2. │ └─base::tryCatch(...)
   3. │   └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   4. │     └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5. │       └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   6. └─base::loadNamespace(x)
   7.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8.     └─base (local) withOneRestart(expr, restarts[[1L]])
   9.       └─base (local) doWithOneRestart(return(expr), restart)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 203 ]
  Error: Test failures
  Execution halted