diff --git a/NAMESPACE b/NAMESPACE index 52c7874..b28fb51 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -1,5 +1,7 @@ # Generated by roxygen2: do not edit by hand +S3method("[",spacetime) +S3method("[[",spacetime) S3method(activate,spacetime) S3method(as_spacetime,sf) S3method(print,spacetime) diff --git a/tests/testthat/test-node_get.R b/tests/testthat/test-node_get.R index bede2f2..4d50e21 100644 --- a/tests/testthat/test-node_get.R +++ b/tests/testthat/test-node_get.R @@ -26,7 +26,7 @@ test_that("nbs is spdep compliant", { mutate( nb = node_get_nbs(), elist = node_get_edge_list(), - wt = node_get_edge_col(elist, "len") + wt = node_get_edge_col(nb, "len") ) @@ -48,7 +48,7 @@ test_that("nbs is spdep compliant", { expect_equal( nb, - lapply(ig_adj_list, as.integer), + lapply(ig_adj_list, function(.x) unique(.x)), ignore_attr = TRUE )