Running 'testthat.R' [198s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > Sys.setenv("R_TEST" = "")
  > library(testthat)
  > library(shinyscholar)
  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")
  Running "D:/RCompile/recent/R-4.3.3/bin/x64/Rcmd.exe" INSTALL \
    "D:/temp/2025_02_12_01_50_00_17817/Rtmp6lfcS4/file191e849997aa2/shinyscholara" \
    --install-tests --no-docs --no-multiarch --no-demo 
  * installing to library 'D:/temp/2025_02_12_01_50_00_17817/Rtmp6lfcS4/temp_libpath191e85f987da4'
  * installing *source* package 'shinyscholara' ...
  ** using staged installation
  ** R
  ** inst
  ** tests
  ** byte-compile and prepare package for lazy loading
  ** help
  *** installing help indices
  ** building package indices
  ** testing if installed package can be loaded from temporary location
  ** testing if installed package can be loaded from final location
  ** testing if installed package keeps a record of temporary installation path
  * DONE (shinyscholara)
  Error in initialize(...) : Invalid path to Chrome
  Running "D:/RCompile/recent/R-4.3.3/bin/x64/Rcmd.exe" INSTALL \
    "D:/temp/2025_02_12_01_50_00_17817/Rtmp6lfcS4/file191e8139d2394/shinyscholarb" \
    --install-tests --no-docs --no-multiarch --no-demo 
  * installing to library 'D:/temp/2025_02_12_01_50_00_17817/Rtmp6lfcS4/temp_libpath191e82ab434ca'
  * installing *source* package 'shinyscholarb' ...
  ** using staged installation
  ** R
  ** inst
  ** tests
  ** byte-compile and prepare package for lazy loading
  ** help
  *** installing help indices
  ** building package indices
  ** testing if installed package can be loaded from temporary location
  ** testing if installed package can be loaded from final location
  ** testing if installed package keeps a record of temporary installation path
  * DONE (shinyscholarb)
  Error in initialize(...) : Invalid path to Chrome
  Running "D:/RCompile/recent/R-4.3.3/bin/x64/Rcmd.exe" INSTALL \
    "D:/temp/2025_02_12_01_50_00_17817/Rtmp6lfcS4/file191e85e102b32/shinyscholarc" \
    --install-tests --no-docs --no-multiarch --no-demo 
  * installing to library 'D:/temp/2025_02_12_01_50_00_17817/Rtmp6lfcS4/temp_libpath191e8680d20b6'
  * installing *source* package 'shinyscholarc' ...
  ** using staged installation
  ** R
  ** inst
  ** tests
  ** byte-compile and prepare package for lazy loading
  ** help
  *** installing help indices
  ** building package indices
  ** testing if installed package can be loaded from temporary location
  ** testing if installed package can be loaded from final location
  ** testing if installed package keeps a record of temporary installation path
  * DONE (shinyscholarc)
  Error in initialize(...) : Invalid path to Chrome
  Running "D:/RCompile/recent/R-4.3.3/bin/x64/Rcmd.exe" INSTALL \
    "D:/temp/2025_02_12_01_50_00_17817/Rtmp6lfcS4/file191e82c48412c/shinyscholard" \
    --install-tests --no-docs --no-multiarch --no-demo 
  * installing to library 'D:/temp/2025_02_12_01_50_00_17817/RtmpmENWLx/RLIBS_2215c798223bc'
  * installing *source* package 'shinyscholard' ...
  ** using staged installation
  ** R
  ** inst
  ** tests
  ** byte-compile and prepare package for lazy loading
  ** help
  *** installing help indices
  ** building package indices
  ** testing if installed package can be loaded from temporary location
  ** testing if installed package can be loaded from final location
  ** testing if installed package keeps a record of temporary installation path
  * DONE (shinyscholard)
  Error in initialize(...) : Invalid path to Chrome
  Error in initialize(...) : Invalid path to Chrome
  Error in initialize(...) : Invalid path to Chrome
  Error in initialize(...) : Invalid path to Chrome
  Running "D:/RCompile/recent/R-4.3.3/bin/x64/Rcmd.exe" INSTALL \
    "D:/temp/2025_02_12_01_50_00_17817/Rtmp6lfcS4/file191e81a4b3087/shinyscholara" \
    --install-tests --no-docs --no-multiarch --no-demo 
  * installing to library 'D:/temp/2025_02_12_01_50_00_17817/Rtmp6lfcS4/temp_libpath191e8596a1fd0'
  * installing *source* package 'shinyscholara' ...
  ** using staged installation
  ** R
  ** inst
  ** tests
  ** byte-compile and prepare package for lazy loading
  ** help
  *** installing help indices
  ** building package indices
  ** testing if installed package can be loaded from temporary location
  ** testing if installed package can be loaded from final location
  ** testing if installed package keeps a record of temporary installation path
  * DONE (shinyscholara)
  Error in initialize(...) : Invalid path to Chrome
  Error in initialize(...) : Invalid path to Chrome
  Error in initialize(...) : Invalid path to Chrome
  Error in initialize(...) : Invalid path to Chrome
  Error in initialize(...) : Invalid path to Chrome
  Error in initialize(...) : Invalid path to Chrome
  Error in initialize(...) : Invalid path to Chrome
  Error in initialize(...) : Invalid path to Chrome
  Error in initialize(...) : Invalid path to Chrome
  [ FAIL 2 | WARN 2 | SKIP 25 | PASS 152 ]
  
  ══ Skipped tests (25) ══════════════════════════════════════════════════════════
  • On CRAN (9): 'test-save_and_load.R:121: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'
  • `shinytest2::AppDriver` can not be initialized as {chromote} can not be
    started (16): 'test-create_template.R:157:7', 'test-create_template.R:200:7',
    'test-create_template.R:229:7', 'test-create_template.R:257:5',
    'test-downloads.R:7:5', 'test-downloads.R:40:5', 'test-downloads.R:57:5',
    'test-metadata.R:132:7', 'test-plot_hist.R:18:5', 'test-plot_scatter.R:21:5',
    'test-save_load.R:6:5', 'test-save_load.R:15:5', 'test-save_load.R:27:5',
    'test-save_load.R:38:5', 'test-select_user.R:16:5', 'test-select_user.R:26:5'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-create_template.R:96:3'): Check create template returns expected errors ──
  `create_template(...)` threw an error with unexpected message.
  Expected match: "At least one module must return results"
  Actual message: "cannot read from connection"
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-create_template.R:96: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:112:3'): Check create template returns expected errors ──
  `create_template(...)` threw an error with unexpected message.
  Expected match: "common_objects contains logger which are included\nin common by default\\. Please choose a different name\\."
  Actual message: "cannot read from connection"
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-create_template.R:112: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)
  
  [ FAIL 2 | WARN 2 | SKIP 25 | PASS 152 ]
  Error: Test failures
  Execution halted