Skip to content

Commit

Permalink
force sf
Browse files Browse the repository at this point in the history
  • Loading branch information
larmarange committed May 15, 2023
1 parent 297bdd8 commit 276cb83
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/as.prevR.r
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ as.prevR <- function(data,
sf::st_crs(boundary) <- projCRS
attr(boundary, "valid") <- FALSE
} else {
boundary <- as(boundary, "sf")
if (!inherits(boundary, "sf")) {
stop("the class of 'boundary' must be sf.", call. = FALSE)
}
Expand Down

0 comments on commit 276cb83

Please sign in to comment.