CRAN Package Check Results for Package spNetwork

Last updated on 2022-04-24 03:52:39 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.4.3 191.35 274.43 465.78 ERROR
r-devel-linux-x86_64-debian-gcc 0.4.3 161.15 194.54 355.69 ERROR
r-devel-linux-x86_64-fedora-clang 0.4.3 753.63 NOTE
r-devel-linux-x86_64-fedora-gcc 0.4.3 699.66 OK
r-patched-linux-x86_64 0.4.3 169.83 243.62 413.45 ERROR
r-release-linux-x86_64 0.4.2 164.60 299.92 464.52 ERROR
r-release-macos-arm64 0.4.2 ERROR
r-release-macos-x86_64 0.4.2 NOTE
r-release-windows-x86_64 0.4.2 123.00 331.00 454.00 NOTE
r-oldrel-macos-arm64 0.4.2 ERROR
r-oldrel-macos-x86_64 0.4.2 NOTE
r-oldrel-windows-ix86+x86_64 0.4.3.1 293.00 729.00 1022.00 NOTE

Check Details

Version: 0.4.3
Check: examples
Result: ERROR
    Running examples in 'spNetwork-Ex.R' failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: aggregate_points
    > ### Title: Events aggregation
    > ### Aliases: aggregate_points
    >
    > ### ** Examples
    >
    > eventsgpkg <- system.file("extdata", "events.gpkg", package = "spNetwork", mustWork = TRUE)
    > bike_accidents <- sf::st_read(eventsgpkg,layer="bike_accidents")
    Warning in CPL_read_ogr(dsn, layer, query, as.character(options), quiet, :
     GDAL Error 1: unable to open database file: this file is a WAL-enabled database. It cannot be opened because it is presumably read-only or in a read-only directory.
    Error: Cannot open "/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/spNetwork/extdata/events.gpkg"; The source could be corrupt or not supported. See `st_drivers()` for a list of supported formats.
    Execution halted
Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.4.3
Check: tests
Result: ERROR
     Running 'testthat.R' [80s/121s]
    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-clang/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-clang/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-clang/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-clang/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:
     x
     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-clang/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:
     x
     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
Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.4.3
Check: re-building of vignette outputs
Result: ERROR
    Error(s) in re-building vignettes:
     ...
    --- re-building 'Isochrones.Rmd' using rmarkdown
    Linking to GEOS 3.10.2, GDAL 3.4.2, PROJ 9.0.0; sf_use_s2() is TRUE
    
    Attaching package: 'smoothr'
    
    The following object is masked from 'package:stats':
    
     smooth
    
    --- finished re-building 'Isochrones.Rmd'
    
    --- re-building 'KNetworkFunctions.Rmd' using rmarkdown
    Warning in CPL_read_ogr(dsn, layer, query, as.character(options), quiet, :
     GDAL Error 1: unable to open database file: this file is a WAL-enabled database. It cannot be opened because it is presumably read-only or in a read-only directory.
    Quitting from lines 58-76 (KNetworkFunctions.Rmd)
    Error: processing vignette 'KNetworkFunctions.Rmd' failed with diagnostics:
    Cannot open "/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/spNetwork/extdata/events.gpkg"; The source could be corrupt or not supported. See `st_drivers()` for a list of supported formats.
    --- failed re-building 'KNetworkFunctions.Rmd'
    
    --- re-building 'NKDE.Rmd' using rmarkdown
    Warning in CPL_read_ogr(dsn, layer, query, as.character(options), quiet, :
     GDAL Error 1: unable to open database file: this file is a WAL-enabled database. It cannot be opened because it is presumably read-only or in a read-only directory.
    Quitting from lines 314-336 (NKDE.Rmd)
    Error: processing vignette 'NKDE.Rmd' failed with diagnostics:
    Cannot open "/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/spNetwork/extdata/events.gpkg"; The source could be corrupt or not supported. See `st_drivers()` for a list of supported formats.
    --- failed re-building 'NKDE.Rmd'
    
    --- re-building 'NetworkBuilding.Rmd' using rmarkdown
    Warning in CPL_read_ogr(dsn, layer, query, as.character(options), quiet, :
     GDAL Error 1: unable to open database file: this file is a WAL-enabled database. It cannot be opened because it is presumably read-only or in a read-only directory.
    Quitting from lines 37-56 (NetworkBuilding.Rmd)
    Error: processing vignette 'NetworkBuilding.Rmd' failed with diagnostics:
    Cannot open "/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/spNetwork/extdata/events.gpkg"; The source could be corrupt or not supported. See `st_drivers()` for a list of supported formats.
    --- failed re-building 'NetworkBuilding.Rmd'
    
    --- re-building 'SpatialWeightMatrices.Rmd' using rmarkdown
    --- finished re-building 'SpatialWeightMatrices.Rmd'
    
    --- re-building 'TNKDE.Rmd' using rmarkdown
    Warning in CPL_read_ogr(dsn, layer, query, as.character(options), quiet, :
     GDAL Error 1: unable to open database file: this file is a WAL-enabled database. It cannot be opened because it is presumably read-only or in a read-only directory.
    Quitting from lines 63-88 (TNKDE.Rmd)
    Error: processing vignette 'TNKDE.Rmd' failed with diagnostics:
    Cannot open "/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/spNetwork/extdata/events.gpkg"; The source could be corrupt or not supported. See `st_drivers()` for a list of supported formats.
    --- failed re-building 'TNKDE.Rmd'
    
    SUMMARY: processing the following files failed:
     'KNetworkFunctions.Rmd' 'NKDE.Rmd' 'NetworkBuilding.Rmd' 'TNKDE.Rmd'
    
    Error: Vignette re-building failed.
    Execution halted
Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.4.3
Check: examples
Result: ERROR
    Running examples in ‘spNetwork-Ex.R’ failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: aggregate_points
    > ### Title: Events aggregation
    > ### Aliases: aggregate_points
    >
    > ### ** Examples
    >
    > eventsgpkg <- system.file("extdata", "events.gpkg", package = "spNetwork", mustWork = TRUE)
    > bike_accidents <- sf::st_read(eventsgpkg,layer="bike_accidents")
    Warning in CPL_read_ogr(dsn, layer, query, as.character(options), quiet, :
     GDAL Error 1: unable to open database file: this file is a WAL-enabled database. It cannot be opened because it is presumably read-only or in a read-only directory.
    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.
    Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.4.3
Check: tests
Result: ERROR
     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
Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.4.3
Check: re-building of vignette outputs
Result: ERROR
    Error(s) in re-building vignettes:
     ...
    --- re-building ‘Isochrones.Rmd’ using rmarkdown
    Linking to GEOS 3.10.2, GDAL 3.4.2, PROJ 9.0.0; sf_use_s2() is TRUE
    
    Attaching package: 'smoothr'
    
    The following object is masked from 'package:stats':
    
     smooth
    
    --- finished re-building ‘Isochrones.Rmd’
    
    --- re-building ‘KNetworkFunctions.Rmd’ using rmarkdown
    Warning in CPL_read_ogr(dsn, layer, query, as.character(options), quiet, :
     GDAL Error 1: unable to open database file: this file is a WAL-enabled database. It cannot be opened because it is presumably read-only or in a read-only directory.
    Quitting from lines 58-76 (KNetworkFunctions.Rmd)
    Error: processing vignette ‘KNetworkFunctions.Rmd’ failed with diagnostics:
    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.
    --- failed re-building ‘KNetworkFunctions.Rmd’
    
    --- re-building ‘NKDE.Rmd’ using rmarkdown
    Warning in CPL_read_ogr(dsn, layer, query, as.character(options), quiet, :
     GDAL Error 1: unable to open database file: this file is a WAL-enabled database. It cannot be opened because it is presumably read-only or in a read-only directory.
    Quitting from lines 314-336 (NKDE.Rmd)
    Error: processing vignette ‘NKDE.Rmd’ failed with diagnostics:
    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.
    --- failed re-building ‘NKDE.Rmd’
    
    --- re-building ‘NetworkBuilding.Rmd’ using rmarkdown
    Warning in CPL_read_ogr(dsn, layer, query, as.character(options), quiet, :
     GDAL Error 1: unable to open database file: this file is a WAL-enabled database. It cannot be opened because it is presumably read-only or in a read-only directory.
    Quitting from lines 37-56 (NetworkBuilding.Rmd)
    Error: processing vignette ‘NetworkBuilding.Rmd’ failed with diagnostics:
    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.
    --- failed re-building ‘NetworkBuilding.Rmd’
    
    --- re-building ‘SpatialWeightMatrices.Rmd’ using rmarkdown
    --- finished re-building ‘SpatialWeightMatrices.Rmd’
    
    --- re-building ‘TNKDE.Rmd’ using rmarkdown
    Warning in CPL_read_ogr(dsn, layer, query, as.character(options), quiet, :
     GDAL Error 1: unable to open database file: this file is a WAL-enabled database. It cannot be opened because it is presumably read-only or in a read-only directory.
    Quitting from lines 63-88 (TNKDE.Rmd)
    Error: processing vignette ‘TNKDE.Rmd’ failed with diagnostics:
    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.
    --- failed re-building ‘TNKDE.Rmd’
    
    SUMMARY: processing the following files failed:
     ‘KNetworkFunctions.Rmd’ ‘NKDE.Rmd’ ‘NetworkBuilding.Rmd’ ‘TNKDE.Rmd’
    
    Error: Vignette re-building failed.
    Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.4.3
Check: installed package size
Result: NOTE
     installed size is 15.4Mb
     sub-directories of 1Mb or more:
     doc 1.1Mb
     extdata 5.6Mb
     libs 7.8Mb
Flavor: r-devel-linux-x86_64-fedora-clang

Version: 0.4.3
Check: examples
Result: ERROR
    Running examples in ‘spNetwork-Ex.R’ failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: aggregate_points
    > ### Title: Events aggregation
    > ### Aliases: aggregate_points
    >
    > ### ** Examples
    >
    > eventsgpkg <- system.file("extdata", "events.gpkg", package = "spNetwork", mustWork = TRUE)
    > bike_accidents <- sf::st_read(eventsgpkg,layer="bike_accidents")
    Warning in CPL_read_ogr(dsn, layer, query, as.character(options), quiet, :
     GDAL Error 1: unable to open database file: this file is a WAL-enabled database. It cannot be opened because it is presumably read-only or in a read-only directory.
    Error: Cannot open "/home/hornik/tmp/R.check/r-patched-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.
    Execution halted
Flavor: r-patched-linux-x86_64

Version: 0.4.3
Check: tests
Result: ERROR
     Running ‘testthat.R’ [66s/110s]
    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-patched-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-patched-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-patched-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-patched-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-patched-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
Flavor: r-patched-linux-x86_64

Version: 0.4.3
Check: re-building of vignette outputs
Result: ERROR
    Error(s) in re-building vignettes:
     ...
    --- re-building ‘Isochrones.Rmd’ using rmarkdown
    Linking to GEOS 3.10.2, GDAL 3.4.2, PROJ 9.0.0; sf_use_s2() is TRUE
    
    Attaching package: 'smoothr'
    
    The following object is masked from 'package:stats':
    
     smooth
    
    --- finished re-building ‘Isochrones.Rmd’
    
    --- re-building ‘KNetworkFunctions.Rmd’ using rmarkdown
    Warning in CPL_read_ogr(dsn, layer, query, as.character(options), quiet, :
     GDAL Error 1: unable to open database file: this file is a WAL-enabled database. It cannot be opened because it is presumably read-only or in a read-only directory.
    Quitting from lines 58-76 (KNetworkFunctions.Rmd)
    Error: processing vignette ‘KNetworkFunctions.Rmd’ failed with diagnostics:
    Cannot open "/home/hornik/tmp/R.check/r-patched-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.
    --- failed re-building ‘KNetworkFunctions.Rmd’
    
    --- re-building ‘NKDE.Rmd’ using rmarkdown
    Warning in CPL_read_ogr(dsn, layer, query, as.character(options), quiet, :
     GDAL Error 1: unable to open database file: this file is a WAL-enabled database. It cannot be opened because it is presumably read-only or in a read-only directory.
    Quitting from lines 314-336 (NKDE.Rmd)
    Error: processing vignette ‘NKDE.Rmd’ failed with diagnostics:
    Cannot open "/home/hornik/tmp/R.check/r-patched-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.
    --- failed re-building ‘NKDE.Rmd’
    
    --- re-building ‘NetworkBuilding.Rmd’ using rmarkdown
    Warning in CPL_read_ogr(dsn, layer, query, as.character(options), quiet, :
     GDAL Error 1: unable to open database file: this file is a WAL-enabled database. It cannot be opened because it is presumably read-only or in a read-only directory.
    Quitting from lines 37-56 (NetworkBuilding.Rmd)
    Error: processing vignette ‘NetworkBuilding.Rmd’ failed with diagnostics:
    Cannot open "/home/hornik/tmp/R.check/r-patched-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.
    --- failed re-building ‘NetworkBuilding.Rmd’
    
    --- re-building ‘SpatialWeightMatrices.Rmd’ using rmarkdown
    --- finished re-building ‘SpatialWeightMatrices.Rmd’
    
    --- re-building ‘TNKDE.Rmd’ using rmarkdown
    Warning in CPL_read_ogr(dsn, layer, query, as.character(options), quiet, :
     GDAL Error 1: unable to open database file: this file is a WAL-enabled database. It cannot be opened because it is presumably read-only or in a read-only directory.
    Quitting from lines 63-88 (TNKDE.Rmd)
    Error: processing vignette ‘TNKDE.Rmd’ failed with diagnostics:
    Cannot open "/home/hornik/tmp/R.check/r-patched-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.
    --- failed re-building ‘TNKDE.Rmd’
    
    SUMMARY: processing the following files failed:
     ‘KNetworkFunctions.Rmd’ ‘NKDE.Rmd’ ‘NetworkBuilding.Rmd’ ‘TNKDE.Rmd’
    
    Error: Vignette re-building failed.
    Execution halted
Flavor: r-patched-linux-x86_64

Version: 0.4.2
Check: examples
Result: ERROR
    Running examples in ‘spNetwork-Ex.R’ failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: aggregate_points
    > ### Title: Events aggregation
    > ### Aliases: aggregate_points
    >
    > ### ** Examples
    >
    > eventsgpkg <- system.file("extdata", "events.gpkg", package = "spNetwork", mustWork = TRUE)
    > bike_accidents <- sf::st_read(eventsgpkg,layer="bike_accidents")
    Warning in CPL_read_ogr(dsn, layer, query, as.character(options), quiet, :
     GDAL Error 1: unable to open database file: this file is a WAL-enabled database. It cannot be opened because it is presumably read-only or in a read-only directory.
    Error: Cannot open "/home/hornik/tmp/R.check/r-release-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.
    Execution halted
Flavor: r-release-linux-x86_64

Version: 0.4.2
Check: tests
Result: ERROR
     Running ‘testthat.R’ [65s/105s]
    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-release-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-release-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-release-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-release-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-release-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
Flavor: r-release-linux-x86_64

Version: 0.4.2
Check: re-building of vignette outputs
Result: WARN
    Error(s) in re-building vignettes:
     ...
    --- re-building ‘Isochrones.Rmd’ using rmarkdown
    Linking to GEOS 3.10.2, GDAL 3.4.2, PROJ 9.0.0; sf_use_s2() is TRUE
    
    Attaching package: 'smoothr'
    
    The following object is masked from 'package:stats':
    
     smooth
    
    --- finished re-building ‘Isochrones.Rmd’
    
    --- re-building ‘KNetworkFunctions.Rmd’ using rmarkdown
    Warning: unable to open database file: this file is a WAL-enabled database. It cannot be opened because it is presumably read-only or in a read-only directory. (GDAL error 1)
    Quitting from lines 58-76 (KNetworkFunctions.Rmd)
    Error: processing vignette 'KNetworkFunctions.Rmd' failed with diagnostics:
    Cannot open "/home/hornik/tmp/R.check/r-release-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.
    --- failed re-building ‘KNetworkFunctions.Rmd’
    
    --- re-building ‘NKDE.Rmd’ using rmarkdown
    Linking to GEOS 3.10.2, GDAL 3.4.2, PROJ 9.0.0; sf_use_s2() is TRUE
    Warning: unable to open database file: this file is a WAL-enabled database. It cannot be opened because it is presumably read-only or in a read-only directory. (GDAL error 1)
    Quitting from lines 314-336 (NKDE.Rmd)
    Error: processing vignette 'NKDE.Rmd' failed with diagnostics:
    Cannot open "/home/hornik/tmp/R.check/r-release-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.
    --- failed re-building ‘NKDE.Rmd’
    
    --- re-building ‘NetworkBuilding.Rmd’ using rmarkdown
    Linking to GEOS 3.10.2, GDAL 3.4.2, PROJ 9.0.0; sf_use_s2() is TRUE
    Warning: unable to open database file: this file is a WAL-enabled database. It cannot be opened because it is presumably read-only or in a read-only directory. (GDAL error 1)
    Quitting from lines 37-56 (NetworkBuilding.Rmd)
    Error: processing vignette 'NetworkBuilding.Rmd' failed with diagnostics:
    Cannot open "/home/hornik/tmp/R.check/r-release-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.
    --- failed re-building ‘NetworkBuilding.Rmd’
    
    --- re-building ‘SpatialWeightMatrices.Rmd’ using rmarkdown
    --- finished re-building ‘SpatialWeightMatrices.Rmd’
    
    --- re-building ‘TNKDE.Rmd’ using rmarkdown
    Linking to GEOS 3.10.2, GDAL 3.4.2, PROJ 9.0.0; sf_use_s2() is TRUE
    Warning: unable to open database file: this file is a WAL-enabled database. It cannot be opened because it is presumably read-only or in a read-only directory. (GDAL error 1)
    Quitting from lines 63-88 (TNKDE.Rmd)
    Error: processing vignette 'TNKDE.Rmd' failed with diagnostics:
    Cannot open "/home/hornik/tmp/R.check/r-release-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.
    --- failed re-building ‘TNKDE.Rmd’
    
    SUMMARY: processing the following files failed:
     ‘KNetworkFunctions.Rmd’ ‘NKDE.Rmd’ ‘NetworkBuilding.Rmd’ ‘TNKDE.Rmd’
    
    Error: Vignette re-building failed.
    Execution halted
Flavor: r-release-linux-x86_64

Version: 0.4.2
Check: installed package size
Result: NOTE
     installed size is 18.0Mb
     sub-directories of 1Mb or more:
     doc 1.1Mb
     extdata 5.6Mb
     libs 10.4Mb
Flavors: r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-x86_64, r-oldrel-macos-arm64, r-oldrel-macos-x86_64

Version: 0.4.2
Check: tests
Result: ERROR
     Running ‘testthat.R’ [20s/29s]
    Running the tests in ‘tests/testthat.R’ failed.
    Last 13 lines of output:
     [1] " build graph ..."
     [1] " calculating NKDE values ..."
     [1] "combining the results ..."
     [ FAIL 1 | WARN 11 | SKIP 0 | PASS 70 ]
    
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Failure (test_bw_selection_sf.R:608:3): Testing that bw selection with Van Lieshout's Criterion gives the same score in single and multicore ──
     !test1 & test2 is not TRUE
    
     `actual`: FALSE
     `expected`: TRUE
    
     [ FAIL 1 | WARN 11 | SKIP 0 | PASS 70 ]
     Error: Test failures
     Execution halted
Flavors: r-release-macos-arm64, r-oldrel-macos-arm64

Version: 0.4.3.1
Check: installed package size
Result: NOTE
     installed size is 8.3Mb
     sub-directories of 1Mb or more:
     doc 1.1Mb
     extdata 2.6Mb
     libs 3.1Mb
Flavor: r-oldrel-windows-ix86+x86_64