Skip to content

Commit

Permalink
n2khab_using_raster(): bugfix for the env var case
Browse files Browse the repository at this point in the history
  • Loading branch information
gnu010 committed Jan 2, 2024
1 parent bffbfc3 commit 1f04927
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/options.R
Original file line number Diff line number Diff line change
Expand Up @@ -125,5 +125,7 @@ n2khab_using_raster <- function() {
if (identical(opt, "")) {
opt <- NA
}
opt || grepl("TRUE|true", opt)
(is.logical(opt) && length(opt) == 1 && opt) ||
identical(opt, "TRUE") ||
identical(opt, "true")
}

0 comments on commit 1f04927

Please sign in to comment.