Skip to content

Commit

Permalink
read_RAST(): harden precondition for ignore.stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
florisvdh committed Jun 15, 2024
1 parent 682c7fc commit afa88cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/rast_link.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ read_RAST <- function(
if (close_OK) {
openedConns <- as.integer(row.names(showConnections()))
}
stopifnot(is.logical(ignore.stderr))
stopifnot(is.logical(ignore.stderr), !is.na(ignore.stderr))

if (!is.null(NODATA)) {
if (any(!is.finite(NODATA)) || any(!is.numeric(NODATA))) {
Expand Down

0 comments on commit afa88cb

Please sign in to comment.