Running ‘testthat.R’ [6s/6s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(shinystan)
  Loading required package: shiny
  
  This is shinystan version 2.5.0
  
  > 
  > test_check("shinystan")
  ── 1. Error: (unknown) (@test_creating_sso.R#3)  ───────────────────────────────
  package or namespace load failed for 'rstanarm' in library.dynam(lib, package, package.lib):
   shared object 'rstanarm.so' not found
  1: suppressPackageStartupMessages(library(rstanarm)) at testthat/test_creating_sso.R:3
  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)
  
  ── 2. Error: (unknown) (@test_misc.R#2)  ───────────────────────────────────────
  package or namespace load failed for 'rstanarm' in library.dynam(lib, package, package.lib):
   shared object 'rstanarm.so' not found
  1: library(rstanarm) at testthat/test_misc.R:2
  2: 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)
     })
  3: tryCatchList(expr, classes, parentenv, handlers)
  4: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  5: value[[3L]](cond)
  6: stop(msg, call. = FALSE, domain = NA)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 80 SKIPPED: 0 FAILED: 2
  1. Error: (unknown) (@test_creating_sso.R#3) 
  2. Error: (unknown) (@test_misc.R#2) 
  
  Error: testthat unit tests failed
  Execution halted