Skip to content

Commit

Permalink
check fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Smith authored and Smith committed Oct 3, 2024
1 parent 5af5654 commit 98182d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/checks.R
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ check_sf <- function(sf, check_poly = FALSE, col = FALSE) {
stop("`", nm, "` missing column `strata_name`", call. = FALSE)
}
# Check for correct column type
if(!class(sf$strata_name) %in% c("character")) {
if(col && !class(sf$strata_name) %in% c("character")) {
stop("`", nm, "` column `strata_name` must be class character", call. = FALSE)
}

Expand Down

0 comments on commit 98182d0

Please sign in to comment.