Running 'testthat.R' [50s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > Sys.setenv("R_TEST" = "")
  > library(testthat)
  > library(shinyscholar)
  Loading required package: bslib
  
  Attaching package: 'bslib'
  
  The following object is masked from 'package:utils':
  
      page
  
  Loading required package: gargoyle
  
  Attaching package: 'gargoyle'
  
  The following object is masked from 'package:testthat':
  
      watch
  
  Loading required package: leaflet
  Loading required package: shiny
  > library(shinytest2)
  > 
  > test_check("shinyscholar")
  ── pak::local_install_deps() ───────────────────────────────────────────────────
  Saving _problems/test-create_template-156.R
  ── pak::local_install_deps() ───────────────────────────────────────────────────
  Saving _problems/test-create_template-198.R
  ── pak::local_install_deps() ───────────────────────────────────────────────────
  Saving _problems/test-create_template-228.R
  ── pak::local_install_deps() ───────────────────────────────────────────────────
  Saving _problems/test-create_template-258.R
  [ FAIL 4 | WARN 1 | SKIP 27 | PASS 152 ]
  
  ══ Skipped tests (27) ══════════════════════════════════════════════════════════
  • On CRAN (27): 'test-downloads.R:6:5', 'test-downloads.R:37:5',
    'test-downloads.R:52:5', 'test-downloads.R:71:5', 'test-helpers.R:7:5',
    'test-metadata.R:98:5', 'test-plot_auto.R:7:5', 'test-plot_hist.R:20:5',
    'test-plot_scatter.R:19:5', 'test-plot_semi.R:6:5',
    'test-save_and_load.R:121:5', 'test-save_load.R:5:5',
    'test-save_load.R:15:5', 'test-save_load.R:28:5', 'test-save_load.R:40:5',
    'test-save_load.R:56:5', 'test-select_async.R:4:5',
    'test-select_async.R:33:5', 'test-select_async.R:44:5',
    'test-select_async.R:56:5', 'test-select_query.R:4:5',
    'test-select_query.R:35:5', 'test-select_query.R:47:5',
    'test-select_query.R:59:5', 'test-select_user.R:15:5',
    'test-select_user.R:26:5', 'test-select_user.R:37:5'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-create_template.R:156:7'): Check create template function works as expected ──
  <callr_status_error/callr_error/rlib_error_3_0/rlib_error/error/condition>
  Error: ! error in pak subprocess
  Caused by error in `get_user_cache_dir()`:
  ! R_USER_CACHE_DIR env var not set during package check, see https://github.com/r-lib/pkgcache#README
  Backtrace:
      ▆
   1. ├─withr::with_temp_libpaths(...) at test-create_template.R:132:3
   2. │ └─base::force(code)
   3. └─devtools::install(...) at test-create_template.R:156:7
   4.   └─(function() {...
   5.     └─pak::local_install_deps(...)
   6.       └─pak:::remote(...)
   7.         └─err$throw(res$error)
  ── Error ('test-create_template.R:198:7'): Check create template function works with false settings ──
  <callr_status_error/callr_error/rlib_error_3_0/rlib_error/error/condition>
  Error: ! error in pak subprocess
  Caused by error in `get_user_cache_dir()`:
  ! R_USER_CACHE_DIR env var not set during package check, see https://github.com/r-lib/pkgcache#README
  Backtrace:
      ▆
   1. ├─withr::with_temp_libpaths(...) at test-create_template.R:167:3
   2. │ └─base::force(code)
   3. └─devtools::install(...) at test-create_template.R:198:7
   4.   └─(function() {...
   5.     └─pak::local_install_deps(...)
   6.       └─pak:::remote(...)
   7.         └─err$throw(res$error)
  ── Error ('test-create_template.R:228:7'): Check async, no map runs correctly ──
  <callr_status_error/callr_error/rlib_error_3_0/rlib_error/error/condition>
  Error: ! error in pak subprocess
  Caused by error in `get_user_cache_dir()`:
  ! R_USER_CACHE_DIR env var not set during package check, see https://github.com/r-lib/pkgcache#README
  Backtrace:
      ▆
   1. ├─withr::with_temp_libpaths(...) at test-create_template.R:210:5
   2. │ └─base::force(code)
   3. └─devtools::install(...) at test-create_template.R:228:7
   4.   └─(function() {...
   5.     └─pak::local_install_deps(...)
   6.       └─pak:::remote(...)
   7.         └─err$throw(res$error)
  ── Error ('test-create_template.R:258:7'): Check async, with map runs correctly ──
  <callr_status_error/callr_error/rlib_error_3_0/rlib_error/error/condition>
  Error: ! error in pak subprocess
  Caused by error in `get_user_cache_dir()`:
  ! R_USER_CACHE_DIR env var not set during package check, see https://github.com/r-lib/pkgcache#README
  Backtrace:
      ▆
   1. ├─withr::with_temp_libpaths(...) at test-create_template.R:240:5
   2. │ └─base::force(code)
   3. └─devtools::install(...) at test-create_template.R:258:7
   4.   └─(function() {...
   5.     └─pak::local_install_deps(...)
   6.       └─pak:::remote(...)
   7.         └─err$throw(res$error)
  
  [ FAIL 4 | WARN 1 | SKIP 27 | PASS 152 ]
  Error:
  ! Test failures.
  Execution halted