Running 'testthat.R' [504s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > Sys.setenv("R_TEST" = "")
  > library(testthat)
  > library(shinyscholar)
  > library(shinytest2)
  > 
  > test_check("shinyscholar")
  Saving _problems/test-create_template-50.R
  Saving _problems/test-create_template-55.R
  Saving _problems/test-create_template-60.R
  Saving _problems/test-create_template-65.R
  Saving _problems/test-create_template-147.R
  Saving _problems/test-create_template-192.R
  Saving _problems/test-create_template-275.R
  [ FAIL 7 | WARN 6 | SKIP 27 | PASS 117 ]
  
  ══ Skipped tests (27) ══════════════════════════════════════════════════════════
  • On CRAN (27): 'test-create_template.R:245:7', '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:6:5',
    'test-save_load.R:19:5', 'test-save_load.R:31:5', 'test-save_load.R:47: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 ════════════════════════════════════════════════════════════════
  ── Failure ('test-create_template.R:47:3'): Check create template returns expected errors ──
  `create_template(...)` threw an error with unexpected message.
  Expected match: "A package on CRAN already uses that name"
  Actual message: "cannot read from connection"
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-create_template.R:47:3
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─shinyscholar::create_template(...)
    7.   ├─name %in% tools::CRAN_package_db()[, c("Package")]
    8.   └─tools::CRAN_package_db()
    9.     ├─base::as.data.frame(...)
   10.     └─tools:::read_CRAN_object(CRAN_baseurl_for_web_area(), "web/packages/packages.rds")
   11.       └─base::readRDS(con)
  ── Failure ('test-create_template.R:52:3'): Check create template returns expected errors ──
  `create_template(...)` threw an error with unexpected message.
  Expected match: "The specified app directory already exists"
  Actual message: "cannot read from connection"
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-create_template.R:52:3
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─shinyscholar::create_template(...)
    7.   ├─name %in% tools::CRAN_package_db()[, c("Package")]
    8.   └─tools::CRAN_package_db()
    9.     ├─base::as.data.frame(...)
   10.     └─tools:::read_CRAN_object(CRAN_baseurl_for_web_area(), "web/packages/packages.rds")
   11.       └─base::readRDS(con)
  ── Failure ('test-create_template.R:57:3'): Check create template returns expected errors ──
  `create_template(...)` threw an error with unexpected message.
  Expected match: "modules must be a dataframe"
  Actual message: "cannot read from connection"
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-create_template.R:57:3
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─shinyscholar::create_template(...)
    7.   ├─name %in% tools::CRAN_package_db()[, c("Package")]
    8.   └─tools::CRAN_package_db()
    9.     ├─base::as.data.frame(...)
   10.     └─tools:::read_CRAN_object(CRAN_baseurl_for_web_area(), "web/packages/packages.rds")
   11.       └─base::readRDS(con)
  ── Error ('test-create_template.R:62:3'): Check create template returns expected errors ──
  Error in `readRDS(con)`: cannot read from connection
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(...) at test-create_template.R:62:3
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─shinyscholar::create_template(...)
    7.   ├─name %in% tools::CRAN_package_db()[, c("Package")]
    8.   └─tools::CRAN_package_db()
    9.     ├─base::as.data.frame(...)
   10.     └─tools:::read_CRAN_object(CRAN_baseurl_for_web_area(), "web/packages/packages.rds")
   11.       └─base::readRDS(con)
  ── Error ('test-create_template.R:145:5'): Check create template function works as expected ──
  Error in `readRDS(con)`: cannot read from connection
  Backtrace:
      ▆
   1. ├─withr::with_temp_libpaths(...) at test-create_template.R:137:3
   2. │ └─base::force(code)
   3. └─shinyscholar::create_template(...) at test-create_template.R:145:5
   4.   ├─name %in% tools::CRAN_package_db()[, c("Package")]
   5.   └─tools::CRAN_package_db()
   6.     ├─base::as.data.frame(...)
   7.     └─tools:::read_CRAN_object(CRAN_baseurl_for_web_area(), "web/packages/packages.rds")
   8.       └─base::readRDS(con)
  ── Error ('test-create_template.R:189:5'): Check create template function works with false settings ──
  Error in `readRDS(con)`: cannot read from connection
  Backtrace:
      ▆
   1. ├─withr::with_temp_libpaths(...) at test-create_template.R:177:3
   2. │ └─base::force(code)
   3. └─shinyscholar::create_template(...) at test-create_template.R:189:5
   4.   ├─name %in% tools::CRAN_package_db()[, c("Package")]
   5.   └─tools::CRAN_package_db()
   6.     ├─base::as.data.frame(...)
   7.     └─tools:::read_CRAN_object(CRAN_baseurl_for_web_area(), "web/packages/packages.rds")
   8.       └─base::readRDS(con)
  ── Error ('test-create_template.R:272:7'): Check async, with map runs correctly ──
  Error in `readRDS(con)`: cannot read from connection
  Backtrace:
      ▆
   1. ├─withr::with_temp_libpaths(...) at test-create_template.R:260:5
   2. │ └─base::force(code)
   3. └─shinyscholar::create_template(...) at test-create_template.R:272:7
   4.   ├─name %in% tools::CRAN_package_db()[, c("Package")]
   5.   └─tools::CRAN_package_db()
   6.     ├─base::as.data.frame(...)
   7.     └─tools:::read_CRAN_object(CRAN_baseurl_for_web_area(), "web/packages/packages.rds")
   8.       └─base::readRDS(con)
  
  [ FAIL 7 | WARN 6 | SKIP 27 | PASS 117 ]
  Error:
  ! Test failures.
  Execution halted