R Under development (unstable) (2025-01-15 r87581 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > 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] "precalculated bws : 3.73661539510889;2.93822642599985;2.45923541821083" [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% [----|----|----|----|----|----|----|----|----|----| **************************************************| *************************0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| **************************************************| *************************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% [----|----|----|----|----|----|----|----|----|----| **************************************************| *************************0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| **************************************************| *************************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] " quadra 1/3" [1] " build graph ..." [1] " calculating NKDE values ..." 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| **************************************************| *************************[1] " quadra 2/3" [1] " build graph ..." [1] " calculating NKDE values ..." 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| **************************************************| *************************[1] " quadra 3/3" [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/3" [1] " build graph ..." [1] " calculating NKDE values ..." 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| **************************************************| *************************[1] " quadra 2/3" [1] " build graph ..." [1] " calculating NKDE values ..." 0% 10 20 30 40 50 60 70 80 90 100% [----|----|----|----|----|----|----|----|----|----| **************************************************| *************************[1] " quadra 3/3" [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] "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] "start calculating the kernel values for the adaptive bandwidth..." [1] "start calculating the kernel values for the adaptive bandwidth..." [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] 1 [1] 1 [1] 1 [1] 1 [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%[1] 1 | |======================================================================| 100%[1] "checking inputs ..." [1] "prior data preparation ..." [1] "Calculating the correction factor if required" [1] "start calculating the CV values ..." | | | 0%[1] "checking inputs ..." [1] "prior data preparation ..." [1] "Calculating the correction factor if required" [1] "start calculating the CV values ..." [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%[1] 1 | |================== | 25%[1] 2 | |=================================== | 50%[1] 3 | |==================================================== | 75%[1] 4 | |======================================================================| 100%[1] "checking inputs ..." [1] "prior data preparation ..." [1] "Calculating the correction factor if required" [1] "start calculating the CV values ..." bw cvl_scores 1 200 3.068381e+12 2 300 9.065499e+12 3 400 1.812532e+13 bw cvl_scores 1 200 3.068381e+12 2 300 9.065499e+12 3 400 1.812532e+13 bw cvl_scores 1 200 3.068381e+12 2 300 9.065499e+12 3 400 1.812532e+13 [1] "checking inputs ..." [1] "prior data preparation ..." [1] "Calculating the correction factor if required" [1] "start calculating the kernel values for the adaptive bandwidth..." [1] " quadra 1/3" [1] " build graph ..." [1] " calculating NKDE values ..." [1] " quadra 2/3" [1] " build graph ..." [1] " calculating NKDE values ..." [1] " quadra 3/3" [1] " build graph ..." [1] " calculating NKDE values ..." [1] "Splittig the dataset within the grid ..." [1] "start calculating the CV values ..." | | | 0%[1] 1 | |======================= | 33%[1] 2 | |=============================================== | 67%[1] 3 | |======================================================================| 100%[1] 1 [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] "Preparing data ..." [1] "Snapping points on lines ..." [1] "Building graph ..." [1] "Preparing data ..." [1] "Snapping points on lines ..." [1] "Building graph ..." [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] "snapping the points to the lines (only once)" [1] "preparing the data in the grid" [1] "adding the points as vertices to nearest lines" [1] "build the local graph" [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 10 | WARN 1 | SKIP 5 | PASS 71 ] ══ Skipped tests (5) ═══════════════════════════════════════════════════════════ • On CRAN (5): 'test_k_functions_sf.R:88:3', 'test_k_functions_sf.R:261:3', 'test_k_functions_sf.R:416:3', 'test_listw_symetry_sf.R:6:3', 'test_listw_symetry_sf.R:69:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test_basics_listw_sf.R:29:3'): Testing on a simple scenario if the neighbouring functions are producing expected results ── Error in `inDL(x, as.logical(local), as.logical(now), ...)`: unable to load shared object 'D:/RCompile/CRANpkg/lib/4.5/cppRouting/libs/x64/cppRouting.dll': LoadLibrary failure: Das angegebene Modul wurde nicht gefunden. Backtrace: ▆ 1. ├─spNetwork::network_listw(...) at test_basics_listw_sf.R:29:3 2. │ └─base::lapply(...) 3. │ └─spNetwork (local) FUN(X[[i]], ...) 4. │ └─spNetwork:::network_listw_worker(...) 5. │ └─spNetwork::build_graph_cppr(...) 6. └─base::loadNamespace(x) 7. └─base::library.dynam(lib, package, package.lib) 8. └─base::dyn.load(file, DLLpath = DLLpath, ...) 9. └─base (local) inDL(x, as.logical(local), as.logical(now), ...) ── Error ('test_basics_listw_sf.R:80:3'): Testing on a simple scenario if the neighbouring functions are producing expected results (with polygons) ── Error in `inDL(x, as.logical(local), as.logical(now), ...)`: unable to load shared object 'D:/RCompile/CRANpkg/lib/4.5/cppRouting/libs/x64/cppRouting.dll': LoadLibrary failure: Das angegebene Modul wurde nicht gefunden. Backtrace: ▆ 1. ├─spNetwork::network_listw(...) at test_basics_listw_sf.R:80:3 2. │ └─base::lapply(...) 3. │ └─spNetwork (local) FUN(X[[i]], ...) 4. │ └─spNetwork:::network_listw_worker(...) 5. │ └─spNetwork::build_graph_cppr(...) 6. └─base::loadNamespace(x) 7. └─base::library.dynam(lib, package, package.lib) 8. └─base::dyn.load(file, DLLpath = DLLpath, ...) 9. └─base (local) inDL(x, as.logical(local), as.logical(now), ...) ── Error ('test_k_functions_sf.R:29:3'): Testing the simple k function ───────── Error in `inDL(x, as.logical(local), as.logical(now), ...)`: unable to load shared object 'D:/RCompile/CRANpkg/lib/4.5/cppRouting/libs/x64/cppRouting.dll': LoadLibrary failure: Das angegebene Modul wurde nicht gefunden. Backtrace: ▆ 1. ├─spNetwork::kfunctions(...) at test_k_functions_sf.R:29:3 2. │ └─spNetwork::build_graph_cppr(...) 3. └─base::loadNamespace(x) 4. └─base::library.dynam(lib, package, package.lib) 5. └─base::dyn.load(file, DLLpath = DLLpath, ...) 6. └─base (local) inDL(x, as.logical(local), as.logical(now), ...) ── Error ('test_k_functions_sf.R:193:3'): Testing the cross k function ───────── Error in `inDL(x, as.logical(local), as.logical(now), ...)`: unable to load shared object 'D:/RCompile/CRANpkg/lib/4.5/cppRouting/libs/x64/cppRouting.dll': LoadLibrary failure: Das angegebene Modul wurde nicht gefunden. Backtrace: ▆ 1. ├─spNetwork::cross_kfunctions(...) at test_k_functions_sf.R:193:3 2. │ └─spNetwork::build_graph_cppr(...) 3. └─base::loadNamespace(x) 4. └─base::library.dynam(lib, package, package.lib) 5. └─base::dyn.load(file, DLLpath = DLLpath, ...) 6. └─base (local) inDL(x, as.logical(local), as.logical(now), ...) ── Error ('test_k_functions_sf.R:365:3'): Testing the simple k function in space-time ── Error in `inDL(x, as.logical(local), as.logical(now), ...)`: unable to load shared object 'D:/RCompile/CRANpkg/lib/4.5/cppRouting/libs/x64/cppRouting.dll': LoadLibrary failure: Das angegebene Modul wurde nicht gefunden. Backtrace: ▆ 1. ├─spNetwork::k_nt_functions(...) at test_k_functions_sf.R:365:3 2. │ └─spNetwork::build_graph_cppr(...) 3. └─base::loadNamespace(x) 4. └─base::library.dynam(lib, package, package.lib) 5. └─base::dyn.load(file, DLLpath = DLLpath, ...) 6. └─base (local) inDL(x, as.logical(local), as.logical(now), ...) ── Error ('test_knn_sf.R:64:3'): Testing the knn function with a simple case ─── Error in `inDL(x, as.logical(local), as.logical(now), ...)`: unable to load shared object 'D:/RCompile/CRANpkg/lib/4.5/cppRouting/libs/x64/cppRouting.dll': LoadLibrary failure: Das angegebene Modul wurde nicht gefunden. Backtrace: ▆ 1. ├─spNetwork::network_knn(...) at test_knn_sf.R:64:3 2. │ └─base::lapply(...) 3. │ └─spNetwork (local) FUN(X[[i]], ...) 4. │ └─spNetwork:::network_knn_worker(...) 5. │ └─spNetwork::build_graph_cppr(...) 6. └─base::loadNamespace(x) 7. └─base::library.dynam(lib, package, package.lib) 8. └─base::dyn.load(file, DLLpath = DLLpath, ...) 9. └─base (local) inDL(x, as.logical(local), as.logical(now), ...) ── Error ('test_knn_sf.R:140:3'): Testing the knn function with a simple case and a directed network ── Error in `inDL(x, as.logical(local), as.logical(now), ...)`: unable to load shared object 'D:/RCompile/CRANpkg/lib/4.5/cppRouting/libs/x64/cppRouting.dll': LoadLibrary failure: Das angegebene Modul wurde nicht gefunden. Backtrace: ▆ 1. ├─spNetwork::network_knn(...) at test_knn_sf.R:140:3 2. │ └─base::lapply(...) 3. │ └─spNetwork (local) FUN(X[[i]], ...) 4. │ └─spNetwork:::network_knn_worker(...) 5. │ └─spNetwork::build_graph_cppr(...) 6. └─base::loadNamespace(x) 7. └─base::library.dynam(lib, package, package.lib) 8. └─base::dyn.load(file, DLLpath = DLLpath, ...) 9. └─base (local) inDL(x, as.logical(local), as.logical(now), ...) ── Error ('test_knn_sf.R:217:3'): Testing the knn function with a simple case and specific destinations ── Error in `inDL(x, as.logical(local), as.logical(now), ...)`: unable to load shared object 'D:/RCompile/CRANpkg/lib/4.5/cppRouting/libs/x64/cppRouting.dll': LoadLibrary failure: Das angegebene Modul wurde nicht gefunden. Backtrace: ▆ 1. ├─spNetwork::network_knn(...) at test_knn_sf.R:217:3 2. │ └─base::lapply(...) 3. │ └─spNetwork (local) FUN(X[[i]], ...) 4. │ └─spNetwork:::network_knn_worker(...) 5. │ └─spNetwork::build_graph_cppr(...) 6. └─base::loadNamespace(x) 7. └─base::library.dynam(lib, package, package.lib) 8. └─base::dyn.load(file, DLLpath = DLLpath, ...) 9. └─base (local) inDL(x, as.logical(local), as.logical(now), ...) ── Error ('test_knn_sf.R:296:3'): Testing the knn function with a simple case, specific destinations and directions ── Error in `inDL(x, as.logical(local), as.logical(now), ...)`: unable to load shared object 'D:/RCompile/CRANpkg/lib/4.5/cppRouting/libs/x64/cppRouting.dll': LoadLibrary failure: Das angegebene Modul wurde nicht gefunden. Backtrace: ▆ 1. ├─spNetwork::network_knn(...) at test_knn_sf.R:296:3 2. │ └─base::lapply(...) 3. │ └─spNetwork (local) FUN(X[[i]], ...) 4. │ └─spNetwork:::network_knn_worker(...) 5. │ └─spNetwork::build_graph_cppr(...) 6. └─base::loadNamespace(x) 7. └─base::library.dynam(lib, package, package.lib) 8. └─base::dyn.load(file, DLLpath = DLLpath, ...) 9. └─base (local) inDL(x, as.logical(local), as.logical(now), ...) ── Error ('test_knn_sf.R:377:3'): Testing the knn function with a simple case, specific destinations and directions ── Error in `inDL(x, as.logical(local), as.logical(now), ...)`: unable to load shared object 'D:/RCompile/CRANpkg/lib/4.5/cppRouting/libs/x64/cppRouting.dll': LoadLibrary failure: Das angegebene Modul wurde nicht gefunden. Backtrace: ▆ 1. └─spNetwork::network_knn.mc(...) at test_knn_sf.R:377:3 2. └─future.apply::future_lapply(...) 3. └─future.apply:::future_xapply(...) 4. ├─base::withCallingHandlers(...) 5. └─(function() {... 6. ├─future::value(fs) 7. └─future:::value.list(fs) 8. ├─future::resolve(...) 9. └─future:::resolve.list(...) 10. └─future (local) signalConditionsASAP(obj, resignal = FALSE, pos = ii) 11. └─future:::signalConditions(...) [ FAIL 10 | WARN 1 | SKIP 5 | PASS 71 ] Error: Test failures Execution halted