Skip to content

Commit 47b476e

Browse files
committed
tidy
1 parent d769dd6 commit 47b476e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/stars.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ gdal_write = function(x, ..., file, driver = "GTiff", options = character(0), ty
3838
warning("handling scale_offset requires sf > 1.0-9")
3939
d = stars::st_dimensions(x)
4040
xydims = attr(d, "raster")$dimensions
41-
if (!all.equal(match(xydims, names(d)), 1:2))
41+
if (!isTRUE(all.equal(match(xydims, names(d)), 1:2)))
4242
stop("x and y raster dimensions need to be in place 1 and 2")
4343
from = c(d[[1]]$from, d[[2]]$from) - 1
4444
dims = c(d[[1]]$to, d[[2]]$to)

0 commit comments

Comments
 (0)