Running ‘testthat.R’ [127s/164s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(LATERmodel)
  > 
  > test_check("LATERmodel")
  [ FAIL 1 | WARN 0 | SKIP 2 | PASS 71 ]
  
  ══ Skipped tests (2) ═══════════════════════════════════════════════════════════
  • On CRAN (2): 'test-plot.R:23:3', 'test-plot.R:31:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-plot.R:3:3'): Carpenter and Williams (1995) Fig1a individual fits ──
  Error in `serverSocket(port = port)`: creation of server socket failed: port 11552 cannot be opened
  Backtrace:
       ▆
    1. └─LATERmodel::individual_later_fit(...) at test-plot.R:3:3
    2.   ├─dplyr::ungroup(...)
    3.   ├─dplyr::group_modify(...)
    4.   └─dplyr:::group_modify.grouped_df(...)
    5.     ├─dplyr::group_map(.data, fun, .keep = .keep)
    6.     └─dplyr:::group_map.data.frame(.data, fun, .keep = .keep)
    7.       └─dplyr:::map2(chunks, group_keys, .f, ...)
    8.         └─base::mapply(.f, .x, .y, MoreArgs = list(...), SIMPLIFY = FALSE)
    9.           └─dplyr (local) `<fn>`(dots[[1L]][[3L]], dots[[2L]][[3L]])
   10.             └─LATERmodel (local) .f(.x, .y, ...)
   11.               └─LATERmodel:::extract_fit_params_and_stat(...)
   12.                 └─LATERmodel::fit_data(...)
   13.                   └─parallel::makeCluster(n_workers, type = cluster_type)
   14.                     └─parallel::makeForkCluster(nnodes = spec, ...)
   15.                       └─base::serverSocket(port = port)
  
  [ FAIL 1 | WARN 0 | SKIP 2 | PASS 71 ]
  Deleting unused snapshots:
  • plot/c-w-1995-fig1a.svg
  Error: Test failures
  Execution halted