Running 'testthat.R' [97s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > test_check("spNetwork")
  Loading required package: spNetwork
  [1] "checking inputs ..."
  [1] "prior data preparation ..."
  [1] "start calculating the kernel values for the adaptive bandwidth..."
  [1] "    quadra 1/1"
  [1] "    build graph ..."
  [1] "        calculating NKDE values ..."
  0%   10   20   30   40   50   60   70   80   90   100%
  [----|----|----|----|----|----|----|----|----|----|
  **************************************************|
  *************************[1] "Splitting the data with the spatial grid ..."
  [1] "start calculating the kernel values ..."
  [1] "    quadra 1/1"
  [1] "    build graph ..."
  [1] "        calculating NKDE values ..."
  0%   10   20   30   40   50   60   70   80   90   100%
  [----|----|----|----|----|----|----|----|----|----|
  **************************************************|
  *************************[1] "combining the results ..."
  [1] "checking inputs ..."
  [1] "prior data preparation ..."
  [1] "calculating the local bandwidth ..."
  [1] "start calculating the kernel values for the adaptive bandwidth..."
  [1] "starting the kernel calculations ..."
  0%   10   20   30   40   50   60   70   80   90   100%
  [----|----|----|----|----|----|----|----|----|----|
  **************************************************|
  *************************[1] "starting the kernel calculations ..."
  0%   10   20   30   40   50   60   70   80   90   100%
  [----|----|----|----|----|----|----|----|----|----|
  **************************************************|
  *************************[1] "combining the results ..."
  [1] "checking inputs ..."
  [1] "prior data preparation ..."
  [1] "start calculating the kernel values for the adaptive bandwidth..."
  [1] "start calculating the kernel values ..."
  [1] "    quadra 1/1"
  [1] "    build graph ..."
  [1] "        calculating NKDE values ..."
  0%   10   20   30   40   50   60   70   80   90   100%
  [----|----|----|----|----|----|----|----|----|----|
  **************************************************|
  *************************[1] "combining the results ..."
  [1] "checking inputs ..."
  [1] "prior data preparation ..."
  [1] "start calculating the kernel values for the adaptive bandwidth..."
  [1] "starting the kernel calculations ..."
  0%   10   20   30   40   50   60   70   80   90   100%
  [----|----|----|----|----|----|----|----|----|----|
  **************************************************|
  *************************[1] "    build graph ..."
  [1] "        calculating NKDE values ..."
  [1] "combining the results ..."
  [1] "generating the starting points"
  [1] "snapping the points to the lines (only once)"
  [1] "starting the network part"
  [1] "working on quadra : 1/1"
  [1] "adding the points as vertices to nearest lines"
  [1] "splitting the lines for the network"
  [1] "generating the network"
  [1] "calculating the distances on the network"
  [1] "building the final listw object"
  [1] "finally generating the listw object ..."
  [1] "checking inputs ..."
  [1] "prior data preparation ..."
  [1] "Calculating the correction factor if required"
  [1] "Splittig the dataset within the grid ..."
  [1] "start calculating the CV values ..."
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |======================================================================| 100%[1] "checking inputs ..."
  [1] "prior data preparation ..."
  [1] "Calculating the correction factor if required"
  [1] "start calculating the CV values ..."
  
    |                                                                            
    |                                                                      |   0%   bw   cvl_scores
  1 200 3.068423e+12
  2 300 9.065686e+12
  3 400 1.812569e+13
     bw   cvl_scores
  1 200 3.068423e+12
  2 300 9.065686e+12
  3 400 1.812569e+13
     bw   cvl_scores
  1 200 3.068423e+12
  2 300 9.065686e+12
  3 400 1.812569e+13
  [1] "prior data preparation ..."
  [1] "Calculating the correction factor if required"
  [1] "start calculating the CV values ..."
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |======================================================================| 100%[1] "prior data preparation ..."
  [1] "Calculating the correction factor if required"
  [1] "start calculating the CV values ..."
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |======================================================================| 100%[1] "prior data preparation ..."
  [1] "Calculating the correction factor if required"
  [1] "start calculating the CV values ..."
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |======================================================================| 100%
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |======================================================================| 100%
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==================                                                    |  25%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |====================================================                  |  75%
    |                                                                            
    |======================================================================| 100%[1] "Preparing data ..."
  [1] "Snapping points on lines ..."
  [1] "Building graph ..."
  [1] "Calculating k and g functions ..."
  [1] "Calculating the simulations ..."
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |======================================================================| 100%[1] "Preparing data ..."
  [1] "Snapping points on lines ..."
  [1] "Building graph ..."
  [1] "Calculating k and g functions ..."
  [1] "Calculating the simulations ..."
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |======================================================================| 100%[1] "Preparing data ..."
  [1] "Snapping points on lines ..."
  [1] "Building graph ..."
  [1] "Calculating k and g functions ..."
  [1] "Calculating the simulations ..."
  [1] "Preparing data ..."
  [1] "Snapping points on lines ..."
  [1] "Building graph ..."
  [1] "Calculating k and g functions ..."
  [1] "Calculating the simulations ..."
  [1] "Preparing data ..."
  [1] "Snapping points on lines ..."
  [1] "Building graph ..."
       [,1] [,2] [,3] [,4]
  [1,]    0    6    4    2
  [2,]    6    0    2    4
  [3,]    4    2    0    2
  [4,]    2    4    2    0
  [1] "Calculating k and g functions ..."
  [1] "Calculating the simulations ..."
  
    |                                                                            
    |                                                                      |   0%[1] "Preparing data ..."
  [1] "Snapping points on lines ..."
  [1] "Building graph ..."
  [1] "Calculating k and g functions ..."
  [1] "Calculating the simulations ..."
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |======================================================================| 100%[1] "checking inputs ..."
  [1] "prior data preparation ..."
  [1] "Splitting the data with the spatial grid ..."
  [1] "start calculating the kernel values ..."
  [1] "    quadra 1/1"
  [1] "    build graph ..."
  [1] "        calculating NKDE values ..."
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |======================================================================| 100%[1] "combining the results ..."
  [1] "checking inputs ..."
  [1] "prior data preparation ..."
  [1] "start calculating the kernel values ..."
  [1] "    quadra 1/1"
  [1] "    build graph ..."
  [1] "        calculating NKDE values ..."
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |======================================================================| 100%[1] "combining the results ..."
  [1] "checking inputs ..."
  [1] "prior data preparation ..."
  [1] "start calculating the kernel values ..."
  [1] "    quadra 1/1"
  [1] "    build graph ..."
  [1] "        calculating NKDE values ..."
  0%   10   20   30   40   50   60   70   80   90   100%
  [----|----|----|----|----|----|----|----|----|----|
  **************************************************|
  [1] "combining the results ..."
  [1] "checking inputs ..."
  [1] "prior data preparation ..."
  [1] "start calculating the kernel values ..."
  [1] "    quadra 1/1"
  [1] "    build graph ..."
  [1] "        calculating NKDE values ..."
  0%   10   20   30   40   50   60   70   80   90   100%
  [----|----|----|----|----|----|----|----|----|----|
  **************************************************|
  [1] "combining the results ..."
  [1] "checking inputs ..."
  [1] "prior data preparation ..."
  [1] "start calculating the kernel values ..."
  [1] "    quadra 1/1"
  [1] "    build graph ..."
  [1] "        calculating NKDE values ..."
  0%   10   20   30   40   50   60   70   80   90   100%
  [----|----|----|----|----|----|----|----|----|----|
  **************************************************|
  [1] "combining the results ..."
  [1] "checking inputs ..."
  [1] "prior data preparation ..."
  [1] "starting the kernel calculations ..."
  0%   10   20   30   40   50   60   70   80   90   100%
  [----|----|----|----|----|----|----|----|----|----|
  **************************************************|
  [1] "    build graph ..."
  [1] "        calculating NKDE values ..."
  [1] "combining the results ..."
  [ FAIL 4 | WARN 6 | SKIP 0 | PASS 68 ]
  
  == Failed tests ================================================================
  -- Error (test_bw_selection_sf.R:501:3): Testing that bw selection by cv-likelihood gives the same score in single and multicore --
  Error in `serverSocket(port = port)`: internet routines cannot be loaded
  Backtrace:
       x
    1. \-future::plan(future::multisession(workers = 2)) at test_bw_selection_sf.R:501:2
    2.   \-future (local) plan_set(newStack, skip = .skip, cleanup = .cleanup, init = .init)
    3.     \-future (local) plan_init()
    4.       \-future (local) evaluator(NA, label = "future-plan-test", globals = FALSE, lazy = FALSE)
    5.         \-future (local) strategy(..., workers = workers, envir = envir)
    6.           \-future::MultisessionFuture(...)
    7.             \-future::ClusterFuture(...)
    8.               +-base::do.call(...)
    9.               \-future (local) `<fn>`(...)
   10.                 \-future:::ClusterRegistry("start", workers = workers, ...)
   11.                   \-future (local) makeCluster(workers, ...)
   12.                     \-parallelly::makeClusterPSOCK(workers, ...)
   13.                       \-base::serverSocket(port = port)
  -- Error (test_bw_selection_tnkde_sf.R:409:3): Testing the bw selection function with CV likelihood in multicore and simple core --
  Error in `serverSocket(port = port)`: internet routines cannot be loaded
  Backtrace:
       x
    1. \-future::plan(future::multisession(workers = 2)) at test_bw_selection_tnkde_sf.R:409:2
    2.   \-future (local) plan_set(newStack, skip = .skip, cleanup = .cleanup, init = .init)
    3.     \-future (local) plan_init()
    4.       \-future (local) evaluator(NA, label = "future-plan-test", globals = FALSE, lazy = FALSE)
    5.         \-future (local) strategy(..., workers = workers, envir = envir)
    6.           \-future::MultisessionFuture(...)
    7.             \-future::ClusterFuture(...)
    8.               +-base::do.call(...)
    9.               \-future (local) `<fn>`(...)
   10.                 \-future:::ClusterRegistry("start", workers = workers, ...)
   11.                   \-future (local) makeCluster(workers, ...)
   12.                     \-parallelly::makeClusterPSOCK(workers, ...)
   13.                       \-base::serverSocket(port = port)
  -- Error (test_splitting_functions.R:57:3): Testing that split_by_grid.mc and split_by_grid return the same thing --
  Error in `serverSocket(port = port)`: internet routines cannot be loaded
  Backtrace:
       x
    1. \-future::plan(future::multisession(workers = 2)) at test_splitting_functions.R:57:2
    2.   \-future (local) plan_set(newStack, skip = .skip, cleanup = .cleanup, init = .init)
    3.     \-future (local) plan_init()
    4.       \-future (local) evaluator(NA, label = "future-plan-test", globals = FALSE, lazy = FALSE)
    5.         \-future (local) strategy(..., workers = workers, envir = envir)
    6.           \-future::MultisessionFuture(...)
    7.             \-future::ClusterFuture(...)
    8.               +-base::do.call(...)
    9.               \-future (local) `<fn>`(...)
   10.                 \-future:::ClusterRegistry("start", workers = workers, ...)
   11.                   \-future (local) makeCluster(workers, ...)
   12.                     \-parallelly::makeClusterPSOCK(workers, ...)
   13.                       \-base::serverSocket(port = port)
  -- Error (test_splitting_functions.R:154:3): Testing that split_by_grid_abw.mc and split_by_grid_abw return the same thing --
  Error in `serverSocket(port = port)`: internet routines cannot be loaded
  Backtrace:
       x
    1. \-future::plan(future::multisession(workers = 2)) at test_splitting_functions.R:154:2
    2.   \-future (local) plan_set(newStack, skip = .skip, cleanup = .cleanup, init = .init)
    3.     \-future (local) plan_init()
    4.       \-future (local) evaluator(NA, label = "future-plan-test", globals = FALSE, lazy = FALSE)
    5.         \-future (local) strategy(..., workers = workers, envir = envir)
    6.           \-future::MultisessionFuture(...)
    7.             \-future::ClusterFuture(...)
    8.               +-base::do.call(...)
    9.               \-future (local) `<fn>`(...)
   10.                 \-future:::ClusterRegistry("start", workers = workers, ...)
   11.                   \-future (local) makeCluster(workers, ...)
   12.                     \-parallelly::makeClusterPSOCK(workers, ...)
   13.                       \-base::serverSocket(port = port)
  
  [ FAIL 4 | WARN 6 | SKIP 0 | PASS 68 ]
  Error: Test failures
  Execution halted