Running 'testthat.R' [10s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(loo)
  This is loo version 2.0.0.
  **NOTE: As of version 2.0.0 loo defaults to 1 core but we recommend using as many as possible. Use the 'cores' argument or set options(mc.cores = NUM_CORES) for an entire session. Visit mc-stan.org/loo/news for details on other changes.
  
  Attaching package: 'loo'
  
  The following object is masked from 'package:testthat':
  
      compare
  
  > Sys.setenv("R_TESTS" = "")
  > test_check("loo")
  -- 1. Error: (unknown) (@test_psis.R#2)  ---------------------------------------
  package or namespace load failed for 'rstanarm' in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
   namespace 'Matrix' 1.2-12 is being loaded, but >= 1.2.13 is required
  1: suppressPackageStartupMessages(library(rstanarm)) at testthat/test_psis.R:2
  2: withCallingHandlers(expr, packageStartupMessage = function(c) invokeRestart("muffleMessage"))
  3: library(rstanarm)
  4: tryCatch({
         attr(package, "LibPath") <- which.lib.loc
         ns <- loadNamespace(package, lib.loc)
         env <- attachNamespace(ns, pos = pos, deps)
     }, error = function(e) {
         P <- if (!is.null(cc <- conditionCall(e))) 
             paste(" in", deparse(cc)[1L])
         else ""
         msg <- gettextf("package or namespace load failed for %s%s:\n %s", sQuote(package), 
             P, conditionMessage(e))
         if (logical.return) 
             message(paste("Error:", msg), domain = NA)
         else stop(msg, call. = FALSE, domain = NA)
     })
  5: tryCatchList(expr, classes, parentenv, handlers)
  6: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  7: value[[3L]](cond)
  8: stop(msg, call. = FALSE, domain = NA)
  
  == testthat results  ===========================================================
  OK: 341 SKIPPED: 0 FAILED: 1
  1. Error: (unknown) (@test_psis.R#2) 
  
  Error: testthat unit tests failed
  Execution halted