Running ‘testthat.R’ [54s/119s]
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%Reading layer `mtl_network' from data source 
    `/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/spNetwork/extdata/networks.gpkg' 
    using driver `GPKG'
  Simple feature collection with 2945 features and 1 field
  Geometry type: LINESTRING
  Dimension:     XY
  Bounding box:  xmin: 295675.9 ymin: 5039320 xmax: 301783.9 ymax: 5044799
  Projected CRS: NAD83 / MTM zone 8
  Reading layer `mtl_network' from data source 
    `/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/spNetwork/extdata/networks.gpkg' 
    using driver `GPKG'
  Simple feature collection with 2945 features and 1 field
  Geometry type: LINESTRING
  Dimension:     XY
  Bounding box:  xmin: 295675.9 ymin: 5039320 xmax: 301783.9 ymax: 5044799
  Projected CRS: NAD83 / MTM zone 8
  [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%[1] "prior data preparation ..."
  [1] "Calculating the correction factor if required"
  [1] "splitting the data by the grid..."
  [1] "start calculating the CV values ..."
  
    |                                                                            
    |                                                                      |   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 ..."
  Reading layer `small_mtl_network' from data source 
    `/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/spNetwork/extdata/networks.gpkg' 
    using driver `GPKG'
  Simple feature collection with 1244 features and 2 fields
  Geometry type: LINESTRING
  Dimension:     XY
  Bounding box:  xmin: 296766.1 ymin: 5040804 xmax: 300116.9 ymax: 5044066
  Projected CRS: NAD83 / MTM zone 8
  [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 2 | WARN 9 | SKIP 0 | PASS 69 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_bw_selection_sf.R:491:3): Testing that bw selection by cv-likelihood gives the same score in single and multicore ──
  <Rcpp::exception/C++Error/error/condition>
  Error: Cannot open "/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/spNetwork/extdata/events.gpkg"; The source could be corrupt or not supported. See `st_drivers()` for a list of supported formats.
  Backtrace:
      ▆
   1. ├─sf::st_read(eventsgpkg, layer = "bike_accidents") at test_bw_selection_sf.R:491:2
   2. └─sf:::st_read.character(eventsgpkg, layer = "bike_accidents")
   3.   └─sf:::CPL_read_ogr(...)
  ── Error (test_bw_selection_sf.R:557:3): Testing that bw selection with Van Lieshout's Criterion gives the same score in single and multicore ──
  <Rcpp::exception/C++Error/error/condition>
  Error: Cannot open "/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/spNetwork/extdata/events.gpkg"; The source could be corrupt or not supported. See `st_drivers()` for a list of supported formats.
  Backtrace:
      ▆
   1. ├─sf::st_read(eventsgpkg, layer = "bike_accidents") at test_bw_selection_sf.R:557:2
   2. └─sf:::st_read.character(eventsgpkg, layer = "bike_accidents")
   3.   └─sf:::CPL_read_ogr(...)
  
  [ FAIL 2 | WARN 9 | SKIP 0 | PASS 69 ]
  Error: Test failures
  Execution halted