Skip to content

Commit dcec0e5

Browse files
committed
m
1 parent a8ed002 commit dcec0e5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
- `extract<SpatVector,SpatVector>` now has argument "count" to get point-in-polygon counts
1919
- `spatSample` can now take a random or regular sample along lines
2020

21-
2221
## new
2322

2423
- `writeRaster` and other methods that can write raster data can now set metadata.
2524
- `split<SpatVector,SpatVector>` method for lines [#1374](https://github.com/rspatial/terra/issues/1374) by MTueting
2625
- `depthName`, `depthName<-`, `depthUnit`, and `depthUnit<-` methods
26+
- `is.num<SpatRaster>` [SO 795026641](https://stackoverflow.com/questions/79502664/what-is-the-correct-terra-usage-to-achieve-is-numeric-on-an-r-terra-package-rast) by Jacob Strunk
2727

2828

2929
# version 1.8-29

R/Arith_generics.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ setMethod("is.bool", signature(x="SpatRaster"),
368368
)
369369
setMethod("is.int", signature(x="SpatRaster"),
370370
function(x) {
371-
x@pntr$valueType(FALSE) == 1
371+
(x@pntr$valueType(FALSE) == 1) & (!x@pntr$hasCategories())
372372
}
373373
)
374374

0 commit comments

Comments
 (0)