Running ‘testthat.R’ [598s/528s]
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")
  Error in app_initialize(self, private, app_dir = app_dir, ..., load_timeout = load_timeout,  : 
    Cannot find shiny port number. Error lines found:
  Loading required package: shiny
  Running application in test mode.
  
  
  ℹ You can inspect the failed AppDriver object via `rlang::last_error()$app`
  ℹ AppDriver logs:
  {shinytest2} R info   07:03:51.46 Start AppDriver initialization
  {shinytest2} R info   07:03:51.48 Starting Shiny app
  {shinytest2} R info   07:04:06.69 Error while initializing AppDriver:
                                    Cannot find shiny port number. Error lines found:
                                    Loading required package: shiny
                                    Running application in test mode.
  {shiny}      R stderr ----------- Loading required package: shiny
  {shiny}      R stderr ----------- Running application in test mode.
  
  
  Caused by error in `app_start_shiny()`:
  ! Cannot find shiny port number. Error lines found:
  Loading required package: shiny
  Running application in test mode.
  [1] "plot_hist_test setup failed - retrying"
  Error in app_initialize(self, private, app_dir = app_dir, ..., load_timeout = load_timeout,  : 
    Cannot find shiny port number. Error lines found:
  Loading required package: shiny
  Running application in test mode.
  
  
  ℹ You can inspect the failed AppDriver object via `rlang::last_error()$app`
  ℹ AppDriver logs:
  {shinytest2} R info   07:04:07.83 Start AppDriver initialization
  {shinytest2} R info   07:04:07.83 Starting Shiny app
  {shinytest2} R info   07:04:23.03 Error while initializing AppDriver:
                                    Cannot find shiny port number. Error lines found:
                                    Loading required package: shiny
                                    Running application in test mode.
  {shiny}      R stderr ----------- Loading required package: shiny
  {shiny}      R stderr ----------- Running application in test mode.
  
  
  Caused by error in `app_start_shiny()`:
  ! Cannot find shiny port number. Error lines found:
  Loading required package: shiny
  Running application in test mode.
  [1] "plot_hist_test setup failed - retrying"
  Error in app_initialize(self, private, app_dir = app_dir, ..., load_timeout = load_timeout,  : 
    Cannot find shiny port number. Error lines found:
  Loading required package: shiny
  Running application in test mode.
  
  
  ℹ You can inspect the failed AppDriver object via `rlang::last_error()$app`
  ℹ AppDriver logs:
  {shinytest2} R info   07:04:24.06 Start AppDriver initialization
  {shinytest2} R info   07:04:24.06 Starting Shiny app
  {shinytest2} R info   07:04:39.23 Error while initializing AppDriver:
                                    Cannot find shiny port number. Error lines found:
                                    Loading required package: shiny
                                    Running application in test mode.
  {shiny}      R stderr ----------- Loading required package: shiny
  {shiny}      R stderr ----------- Running application in test mode.
  
  
  Caused by error in `app_start_shiny()`:
  ! Cannot find shiny port number. Error lines found:
  Loading required package: shiny
  Running application in test mode.
  [1] "plot_hist_test setup failed - retrying"
  Error in app_initialize(self, private, app_dir = app_dir, ..., load_timeout = load_timeout,  : 
    Cannot find shiny port number. Error lines found:
  Loading required package: shiny
  Running application in test mode.
  
  
  ℹ You can inspect the failed AppDriver object via `rlang::last_error()$app`
  ℹ AppDriver logs:
  {shinytest2} R info   07:04:40.26 Start AppDriver initialization
  {shinytest2} R info   07:04:40.27 Starting Shiny app
  {shinytest2} R info   07:04:55.45 Error while initializing AppDriver:
                                    Cannot find shiny port number. Error lines found:
                                    Loading required package: shiny
                                    Running application in test mode.
  {shiny}      R stderr ----------- Loading required package: shiny
  {shiny}      R stderr ----------- Running application in test mode.
  
  
  Caused by error in `app_start_shiny()`:
  ! Cannot find shiny port number. Error lines found:
  Loading required package: shiny
  Running application in test mode.
  [1] "plot_hist_test setup failed - retrying"
  Error in app_initialize(self, private, app_dir = app_dir, ..., load_timeout = load_timeout,  : 
    Cannot find shiny port number. Error lines found:
  Loading required package: shiny
  Running application in test mode.
  
  
  ℹ You can inspect the failed AppDriver object via `rlang::last_error()$app`
  ℹ AppDriver logs:
  {shinytest2} R info   07:04:56.42 Start AppDriver initialization
  {shinytest2} R info   07:04:56.42 Starting Shiny app
  {shinytest2} R info   07:05:11.58 Error while initializing AppDriver:
                                    Cannot find shiny port number. Error lines found:
                                    Loading required package: shiny
                                    Running application in test mode.
  {shiny}      R stderr ----------- Loading required package: shiny
  {shiny}      R stderr ----------- Running application in test mode.
  
  
  Caused by error in `app_start_shiny()`:
  ! Cannot find shiny port number. Error lines found:
  Loading required package: shiny
  Running application in test mode.
  [1] "plot_hist_test setup failed - retrying"
  Error in app_initialize(self, private, app_dir = app_dir, ..., load_timeout = load_timeout,  : 
    Cannot find shiny port number. Error lines found:
  Loading required package: shiny
  Running application in test mode.
  
  
  ℹ You can inspect the failed AppDriver object via `rlang::last_error()$app`
  ℹ AppDriver logs:
  {shinytest2} R info   07:05:12.26 Start AppDriver initialization
  {shinytest2} R info   07:05:12.26 Starting Shiny app
  {shinytest2} R info   07:05:27.44 Error while initializing AppDriver:
                                    Cannot find shiny port number. Error lines found:
                                    Loading required package: shiny
                                    Running application in test mode.
  {shiny}      R stderr ----------- Loading required package: shiny
  {shiny}      R stderr ----------- Running application in test mode.
  
  
  Caused by error in `app_start_shiny()`:
  ! Cannot find shiny port number. Error lines found:
  Loading required package: shiny
  Running application in test mode.
  [1] "plot_hist_test setup failed - retrying"
  Error in app_initialize(self, private, app_dir = app_dir, ..., load_timeout = load_timeout,  : 
    Cannot find shiny port number. Error lines found:
  Loading required package: shiny
  Running application in test mode.
  
  
  ℹ You can inspect the failed AppDriver object via `rlang::last_error()$app`
  ℹ AppDriver logs:
  {shinytest2} R info   07:05:28.14 Start AppDriver initialization
  {shinytest2} R info   07:05:28.15 Starting Shiny app
  {shinytest2} R info   07:05:43.32 Error while initializing AppDriver:
                                    Cannot find shiny port number. Error lines found:
                                    Loading required package: shiny
                                    Running application in test mode.
  {shiny}      R stderr ----------- Loading required package: shiny
  {shiny}      R stderr ----------- Running application in test mode.
  
  
  Caused by error in `app_start_shiny()`:
  ! Cannot find shiny port number. Error lines found:
  Loading required package: shiny
  Running application in test mode.
  [1] "plot_hist_test setup failed - retrying"
  Error in app_initialize(self, private, app_dir = app_dir, ..., load_timeout = load_timeout,  : 
    Cannot find shiny port number. Error lines found:
  Loading required package: shiny
  Running application in test mode.
  
  
  ℹ You can inspect the failed AppDriver object via `rlang::last_error()$app`
  ℹ AppDriver logs:
  {shinytest2} R info   07:05:43.97 Start AppDriver initialization
  {shinytest2} R info   07:05:43.98 Starting Shiny app
  {shinytest2} R info   07:05:59.12 Error while initializing AppDriver:
                                    Cannot find shiny port number. Error lines found:
                                    Loading required package: shiny
                                    Running application in test mode.
  {shiny}      R stderr ----------- Loading required package: shiny
  {shiny}      R stderr ----------- Running application in test mode.
  
  
  Caused by error in `app_start_shiny()`:
  ! Cannot find shiny port number. Error lines found:
  Loading required package: shiny
  Running application in test mode.
  [1] "plot_hist_test setup failed - retrying"
  Error in app_download(self, private, output = output, name = name, save_dir = save_dir,  : 
    Download from '#core_save-save_session' failed
  [1] "plot_scatter_test setup failed - retrying"
  Error in app_initialize(self, private, app_dir = app_dir, ..., load_timeout = load_timeout,  : 
    Cannot find shiny port number. Error lines found:
  Loading required package: shiny
  Running application in test mode.
  
  
  ℹ You can inspect the failed AppDriver object via `rlang::last_error()$app`
  ℹ AppDriver logs:
  {shinytest2} R info   07:06:58.09 Start AppDriver initialization
  {shinytest2} R info   07:06:58.09 Starting Shiny app
  {shinytest2} R info   07:07:13.24 Error while initializing AppDriver:
                                    Cannot find shiny port number. Error lines found:
                                    Loading required package: shiny
                                    Running application in test mode.
  {shiny}      R stderr ----------- Loading required package: shiny
  {shiny}      R stderr ----------- Running application in test mode.
  
  
  Caused by error in `app_start_shiny()`:
  ! Cannot find shiny port number. Error lines found:
  Loading required package: shiny
  Running application in test mode.
  [1] "plot_scatter_test setup failed - retrying"
  Error in app_download(self, private, output = output, name = name, save_dir = save_dir,  : 
    Download from '#core_save-save_session' failed
  [1] "save_scat_test setup failed - retrying"
  [ FAIL 3 | WARN 0 | SKIP 9 | PASS 171 ]
  
  ══ Skipped tests (9) ═══════════════════════════════════════════════════════════
  • 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'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-downloads.R:6:5'): {shinytest2} recording: e2e_markdown ────────
  Error in `app_initialize(self, private, app_dir = app_dir, ..., load_timeout = load_timeout, 
      timeout = timeout, wait = wait, expect_values_screenshot_args = expect_values_screenshot_args, 
      screenshot_args = screenshot_args, check_names = check_names, 
      name = name, variant = variant, view = view, height = height, 
      width = width, seed = seed, clean_logs = clean_logs, shiny_args = shiny_args, 
      render_args = render_args, options = options)`: Cannot find shiny port number. Error lines found:
  Loading required package: shiny
  Running application in test mode.
  
  
  ℹ You can inspect the failed AppDriver object via `rlang::last_error()$app`
  ℹ AppDriver logs:
  {shinytest2} R info   07:02:40.23 Start AppDriver initialization
  {shinytest2} R info   07:02:40.24 Starting Shiny app
  {shinytest2} R info   07:02:55.44 Error while initializing AppDriver:
                                    Cannot find shiny port number. Error lines found:
                                    Loading required package: shiny
                                    Running application in test mode.
  {shiny}      R stderr ----------- Loading required package: shiny
  {shiny}      R stderr ----------- Running application in test mode.
  
  
  Caused by error in `app_start_shiny()`:
  ! Cannot find shiny port number. Error lines found:
  Loading required package: shiny
  Running application in test mode.
  ── Error ('test-downloads.R:36:5'): {shinytest2} recording: e2e_table_download ──
  Error in `app_initialize(self, private, app_dir = app_dir, ..., load_timeout = load_timeout, 
      timeout = timeout, wait = wait, expect_values_screenshot_args = expect_values_screenshot_args, 
      screenshot_args = screenshot_args, check_names = check_names, 
      name = name, variant = variant, view = view, height = height, 
      width = width, seed = seed, clean_logs = clean_logs, shiny_args = shiny_args, 
      render_args = render_args, options = options)`: Cannot find shiny port number. Error lines found:
  Loading required package: shiny
  Running application in test mode.
  
  
  ℹ You can inspect the failed AppDriver object via `rlang::last_error()$app`
  ℹ AppDriver logs:
  {shinytest2} R info   07:02:56.44 Start AppDriver initialization
  {shinytest2} R info   07:02:56.46 Starting Shiny app
  {shinytest2} R info   07:03:11.67 Error while initializing AppDriver:
                                    Cannot find shiny port number. Error lines found:
                                    Loading required package: shiny
                                    Running application in test mode.
  {shiny}      R stderr ----------- Loading required package: shiny
  {shiny}      R stderr ----------- Running application in test mode.
  
  
  Caused by error in `app_start_shiny()`:
  ! Cannot find shiny port number. Error lines found:
  Loading required package: shiny
  Running application in test mode.
  ── Error ('test-downloads.R:50:5'): {shinytest2} recording: e2e_plot_downloads ──
  Error in `app_initialize(self, private, app_dir = app_dir, ..., load_timeout = load_timeout, 
      timeout = timeout, wait = wait, expect_values_screenshot_args = expect_values_screenshot_args, 
      screenshot_args = screenshot_args, check_names = check_names, 
      name = name, variant = variant, view = view, height = height, 
      width = width, seed = seed, clean_logs = clean_logs, shiny_args = shiny_args, 
      render_args = render_args, options = options)`: Cannot find shiny port number. Error lines found:
  Loading required package: shiny
  Running application in test mode.
  
  
  ℹ You can inspect the failed AppDriver object via `rlang::last_error()$app`
  ℹ AppDriver logs:
  {shinytest2} R info   07:03:12.57 Start AppDriver initialization
  {shinytest2} R info   07:03:12.59 Starting Shiny app
  {shinytest2} R info   07:03:27.82 Error while initializing AppDriver:
                                    Cannot find shiny port number. Error lines found:
                                    Loading required package: shiny
                                    Running application in test mode.
  {shiny}      R stderr ----------- Loading required package: shiny
  {shiny}      R stderr ----------- Running application in test mode.
  
  
  Caused by error in `app_start_shiny()`:
  ! Cannot find shiny port number. Error lines found:
  Loading required package: shiny
  Running application in test mode.
  
  [ FAIL 3 | WARN 0 | SKIP 9 | PASS 171 ]
  Error: Test failures
  Execution halted