Running 'testthat.R' [286s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(bcmaps)
  Loading required package: sf
  Linking to GEOS 3.8.0, GDAL 3.0.4, PROJ 6.3.1
  > 
  > test_check("bcmaps")
  Error in get(name, envir = asNamespace(pkg), inherits = FALSE) : 
    object '.slaveRSOCK' not found
  Calls: ::: -> get
  Execution halted
  -- 1. Error: raster_by_poly works with parallel (@test-raster_by_poly.R#32)  ---
  Failed to launch and connect to R worker on local machine 'localhost' from local machine 'CRANWIN'.
   * The error produced by socketConnection() was: 'reached elapsed time limit' (which suggests that the connection timeout of 120 seconds (argument 'connectTimeout') kicked in)
   * The localhost socket connection that failed to connect to the R worker used port 11976 using a communication timeout of 2592000 seconds and a connection timeout of 120 seconds.
   * Worker launch call: "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpeaKv3b/future.parent=50620.c5bc7a4e1c90.pid\")), silent = TRUE)" -e "parallel:::.slaveRSOCK()" MASTER=localhost PORT=11976 OUT=/dev/null TIMEOUT=2592000 XDR=TRUE.
   * Worker (PID 67140) was successfully killed: TRUE
   * Troubleshooting suggestions:
     - Suggestion #1: Set 'verbose=TRUE' to see more details.
     - Suggestion #2: On Windows, output from worker when using 'outfile=NULL' is only visible when running R from a terminal (not a GUI).
  Backtrace:
    1. testthat::expect_equal(...)
    4. bcmaps::raster_by_poly(r, p, "name", parallel = TRUE)
    5. bcmaps:::setup_future(future_strategy, workers, ...)
    6. future::plan(future_strategy, ..., substitute = FALSE)
    7. future:::plan_set(...)
    8. future:::plan_init()
    9. future:::evaluator(...)
   10. future:::fun(...)
   11. future:::ClusterRegistry("start", workers = workers)
   12. future:::makeCluster(workers, ...)
   13. future::makeClusterPSOCK(workers, ...)
   14. future:::makeNode(...)
   15. (function() {...
   16. base::tryCatch(...)
   17. base:::tryCatchList(expr, classes, parentenv, handlers)
   18. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   19. value[[3L]](cond)
   20. (function() {...
  
  Error in get(name, envir = asNamespace(pkg), inherits = FALSE) : 
    object '.slaveRSOCK' not found
  Calls: ::: -> get
  Execution halted
  -- 2. Error: setup_future works (@test-raster_by_poly.R#66)  -------------------
  Failed to launch and connect to R worker on local machine 'localhost' from local machine 'CRANWIN'.
   * The error produced by socketConnection() was: 'reached elapsed time limit' (which suggests that the connection timeout of 120 seconds (argument 'connectTimeout') kicked in)
   * The localhost socket connection that failed to connect to the R worker used port 11976 using a communication timeout of 2592000 seconds and a connection timeout of 120 seconds.
   * Worker launch call: "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpeaKv3b/future.parent=50620.c5bc18e63d0e.pid\")), silent = TRUE)" -e "parallel:::.slaveRSOCK()" MASTER=localhost PORT=11976 OUT=/dev/null TIMEOUT=2592000 XDR=TRUE.
   * Worker (PID 112544) was successfully killed: TRUE
   * Troubleshooting suggestions:
     - Suggestion #1: Set 'verbose=TRUE' to see more details.
     - Suggestion #2: On Windows, output from worker when using 'outfile=NULL' is only visible when running R from a terminal (not a GUI).
  Backtrace:
    1. testthat::expect_message(...)
    6. bcmaps:::z()
    7. bcmaps:::setup_future(future_strategy, workers, ...)
    8. future::plan(future_strategy, ..., substitute = FALSE)
    9. future:::plan_set(...)
   10. future:::plan_init()
   11. future:::evaluator(...)
   12. future:::fun(...)
   13. future:::ClusterRegistry("start", workers = workers)
   14. future:::makeCluster(workers, ...)
   15. future::makeClusterPSOCK(workers, ...)
   16. future:::makeNode(...)
   17. (function() {...
   18. base::tryCatch(...)
   19. base:::tryCatchList(expr, classes, parentenv, handlers)
   20. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   21. value[[3L]](cond)
   22. (function() {...
  
  == testthat results  ===========================================================
  [ OK: 73 | SKIPPED: 11 | WARNINGS: 17 | FAILED: 2 ]
  1. Error: raster_by_poly works with parallel (@test-raster_by_poly.R#32) 
  2. Error: setup_future works (@test-raster_by_poly.R#66) 
  
  Error: testthat unit tests failed
  Execution halted