Skip to content

Commit

Permalink
Merge pull request #48 from JosiahParry/v0.2.4
Browse files Browse the repository at this point in the history
Prepare CRAN release
  • Loading branch information
JosiahParry authored Feb 17, 2024
2 parents 9e52a6b + 3c02bcb commit 23095a5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# sfdep 0.2.4

- Dexter Locke is now the maintainer of sfdep
- Address failing CRAN checks h/t [@rsbivand](https://github.com/rsbivand) <https://github.com/JosiahParry/sfdep/pull/43>
- Address bug in local Gi/* statistics

# sfdep 0.2.3

- remove readr suggestion to pass `noSuggests` from CRAN. Much minuscule tasks for the overlords.
Expand Down
3 changes: 2 additions & 1 deletion R/spacetime-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
# Selection ---------------------------------------------------------------
# Selection method
# to do update `times` attribute when subset and data is active

#' @export
`[.spacetime` <- function(x, ...) {
NextMethod()
}

#' @export
`[[.spacetime` <- function(x, ...) {
NextMethod()
}
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test-node_get.R
Original file line number Diff line number Diff line change
Expand Up @@ -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")
)


Expand All @@ -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
)

Expand Down

0 comments on commit 23095a5

Please sign in to comment.