"testing functions for k and g function analysis"
"Testing the simple k function (multicore)"
"Testing the simple k function in space-time"
"Testing the simple k function in space-time multicore"

Testing the simple k function in space-time

test_that("Testing the knn function with a simple case", {
# start with de definition of some lines
test_that("Testing the knn function with a simple case and a directed network", {
# sp::plot(subset(all_lines, all_lines$dir != "Both"), c = "red", add = T)
test_that("Testing the knn function with a simple case and specific destinations", {
destinations <- st_as_sf(destinations, coords = c("x","y"))
# sp::plot(destinations, add = T, pch = 20)
mats <- network_knn(event, all_lines, destinations = destinations, k = 2, maxdistance = 100)
test_that("Testing the knn function with a simple case, specific destinations and directions", {
mats <- network_knn(event, all_lines, destinations = destinations, k = 2, maxdistance = 100, direction = "dir")
#### Fourth simple test BUT MULTICORE ####
direction = "dir", line_weight = 'length',

"Testing the knn function with a simple case"
"Testing the knn function with a simple case and a directed network"
"Testing the knn function with a simple case and specific destinations"
"Testing the knn function with a simple case, specific destinations and directions"

Testing the knn function with a simple case

Testing the knn function with a simple case and a directed network

Testing the knn function with a simple case and specific destinations

Testing the knn function with a simple case, specific destinations and directions