pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/geography/R-terra



Module Name:    pkgsrc
Committed By:   wiz
Date:           Sun Nov  9 22:38:12 UTC 2025

Modified Files:
        pkgsrc/geography/R-terra: Makefile distinfo

Log Message:
R-terra: update to 1.8.80.

Fixes build with current pkgsrc versions of dependencies.

# version 1.8-80

## bug fixes

- `plot<SpatRaster>` with arguments "break=n" and "breakby='cases'" could break if there the number of computed quantile breaks is lower than expected because of duplicates [#1913]
- `buffer<SpatRaster>` for lon/lat rasters did not include the non `NA` cells outside of the buffer distance from the edges as part of the buffer [#1929]
- computing dates for years < 1 failed (regression introduced when fixing #1896) [#1951]
- computing dates for 365 day calendars was not accurate in some cases [#1951]
- `values(x[["name"]])<-` failed if `x` had a single layer [#1944]
- colors specified in a vat.dbf file were no longer extracted due to a change in GDAL [#1943]
- `buffer<SpatVector>` with lon/lat coordinates did not behave well for very large buffers; especially around areas near the dateline [#1926]
- `mask<SpatRaster,SpatVector>` "inverse=TRUE" lost the layernames. [#1959]

## enhancements

- `plet<SpatRaster>` can (again) use a color function returned by `leaflet::colorNumeric` [#1904]
- argument `animate<SpatRaster>` can now be set to `NA` to not get a shared legend [#1909]
- `text<SpatRaster>` and `text<SpatVector>` gained argument "jitter=0" [#1910]
- `points<SpatVector>` gained argument "jitter=0"
- `plet<SpatRaster>` gained arguments "range" and "fill_range"
- `unique<SpatVector>` gained arguments "geom=TRUE" and "atts=TRUE" to allow uniqueness to be based on geometry or attributes only [#1928]
- `buffer<SpatRaster>` gains argument "include=TRUE" to allow exclusion of the cells that are not `NA` from the buffer  [#1929]
- argument "names" to `distance<SpatVector,missing>` [#1942]
- `subset<SpatVector>` now works without a value for argument "subset", to allow subsetting variables only [#1953]

## new

- `plet<SpatRasterCollection>` method
- `cartogram<SpatRaster>` can now return a "circles" (dorling) cartogram [#1911]
- `subset<SpatVector>` can now use a Spat object to spatially subset [#1937]
- `plot<SpatRaster>` and `plot<SpatVector>` have new argument "zebra=FALSE", to create a zebra-box. [https://github.com/rspatial/terra/issues/1956]

# version 1.8-70

Released 2025-09-27

## bug fixes

- `project(mask=TRUE)` could fail with high-resolution global rasters because of date-line flipping [SO 79708536]
- `plot(pax=list(mgp=c(1,1,2))` now sets mgp seperately for horizontal and vertical axes [#1873]
- `coltab(x, ..., layer=1)<-` argument layer did not work for layer names [#1879]
- `sds` could create a SpatRasterDataset with SpatRasters with different spatial resolutions [#1884]
- `identical` did not consider NA values [#1890]
- `add_grid` did not respect the clipping region if a second raster was added with `add=TRUE` [#1889]
- `rast(x, type = "xyz")` did not inherit CRS from a SpatVector [#1886]
- `distance(values = TRUE)` returned unexpected results [#1891]
- `plot` with arguments for a continuous legend failed if no such legend was drawn [#1897]

## enhancements

- when computing aggregated time steps such as days from POSIXct (seconds) time, terra now uses the date in the specified time zone, unlike base `as.Date` that seems to return the date in the UTC 
time zone [#1896]
- better support for creating a SpatVector with an EMPTY wkt geometry [#1903]
- `makeTiles` gains argument "value" to set the returned value to be the filenames (default), a SpatRaster or a SpatRasterCollection [#1894]

## new

- it is now possible to create a SpatVector from Well Known Binary (WKB) data [#1895]
- `resample` now also accepts, instead of a template SpatRaster, one or two numbers to set the resolution of the output SpatRaster [#1874]

# version 1.8-60

Released 2025-07-18

## bug fixes

- `freq` failed when using zones polygons that did not overlap with any cell centers [SO 79654752]
- `as.lines<SpatVector>` with an empty SpatVector crashed R [#1847]
- `resample` with method="median" did not work [#1855]
- terra did not install on 32-bit systems [#1846]
- terra did not install with GDAL < 3.1 [#1853]
- better assignment of a list to a new subsetted SpatVector variable [#1867]
- `nearest` did not work well for lonlat polygons [#1869]
- polygon union failure when symdif returns lines [#1866]
- where.max did not work properly when processing large files in chunks. [#1858]
- numerical layer indexing in extract was broken [#1862]

## enhancements

- `freq` has new argument "touches" to determine which cell to include if a zones polygon is used [SO 79654752]
- `plot` with a continuous legend has new `plg` parameter "format" so that you can use scientific notation [#1861]
- `sprc<character>` now also works for a single datasource raster [#1860]

# version 1.8-54

Released 2025-06-01

## bug fixes

- `plot<SpatRaster>` using a value/color data.frame did not work correctly in all cases [#1827]
- `plot<SpatRaster>` argument "alpha" did not work properly [#1833]
- added the `-lnetcdf` flag needed for linking on some linuxes [#1829]
- in some cases the last block used in raster processing was too large and led to memory issues [#1825]
- `==<SpatRaster>` with multiple layers and categorical comparison failed [#1836]
- `wrteCDF` failed when writing tags with illegal characters such as "{" or "(", [#1811]
- `freq` failed for an empty SpatRaster [#1839]
- `writeVector` with an empty SpatVector crashed R [#1837]
- `predict<SpatRaster>` could fail with na.rm=TRUE and a block with NA values only [#1843]
- In some cases, `rast` interpreted a histogram attribute as a factor [#1845]

## enhancements

- `rast` with multiple files and lyrs argument now applies the argument to each data source (file); unless numbers higher than the number of layers of the first source are included. [#1838]

## new

- `unloadGDALdrivers` to disable selected GDAL drivers [#1828]
- experimental support for the GDAL multidimensional raster data interface via `rast(md=TRUE)`
- `ar_info` to describe multidimensional (ncdf) raster files

# version 1.8-50

Released 2025-05-09

## bug fixes
- `rast(xyz=TRUE)` failed if there was no z variable [#1802]
- `metags` failed if a matrix was used [#1803]
- `distance<SpatVector>(sequential=TRUE)` did not return a vector with the first value of zero (and there was an additional value [#1804]
- `depth` information was dropped even when there was no reason for that [#1806]
- `plet` did not work for logical SpatRasters [#1820]
- `extract<SpatRaster>` with a "window" set, did not work properly [#1819]
- `extract<SpatRaster>` with argument "layers" and xy=TRUE added an unexpected additional column [#1818]
- `extractRange` now honors arguments `bind` and assigns `ID` within a list [#1816]
- `crop<SpatRaster,SpatVector>(mask=TRUE)` did not crop if the SpatVector was (partly) outside the SpatVector [#1824]

## enhancements
- `init` with a matrix argument now keeps the same row/col values [#1801]
- `rasterize` now checks for very large numbers and switches to FLT8S if detected. [#1797]
- `rast`, `sds` and `sprc` get new argument "guessCRS" to suppress CRS guessing [#1800]
- `plot<SpatRaster/SpatVector>` with a continuous legend now responds to `plg=list(horiz=TRUE))` [#1805]

## new

- `spatSample(method="spread")` to get an approximate regular sample of the cells that are not `NA`

# version 1.8-42

Released 2025-04-02

## bug fixes

- min/max statistics computed when writing raster files did not exclude the user provided NA flag. [#1752]
- installation failed for GEOS < 3.7 [#1754]
- `extract` with points for rasters accessed over http could return NAs for some cells if the raster was large [#1504]
- `writeCDF` now supports writing an empty crs [#1759]
- `resample` on flipped SpatRasters failed. [#1760]
- `spatSample<SpatRaster>(method="regular", xy=TRUE)` ignored the second "size" number when using two numbers (row, col) [#1766]
- `plet<SpatRaster>` failed when trying to display multiple layers [#1787]

## enhancements

- georeferenced rasters that are flipped are now identified as such that there no longer is a need for flip(r, "vertical") after opening the file. [#1753]
- `metags` now supports raster metadata domains
- `extract` with a vector of two non-integers triggers a warning (possible point vs cellnumber confusion) [#1757]
- `writeCDF` now supports four dimensions (x, y, depth and time) [#1756]
- `vect` and `svc` now have argument "dialect" to select an SQL dialect [#1750]
- `extract<SpatVector,SpatVector>` now has argument "count" to get point-in-polygon counts
- `spatSample` can now take a random or regular sample along lines
- `plot` gained arguments to control the legend title (including leg.title.x, leg.title.y, leg.title.srt) and some tweaks to the defaults to improve the default title position of horizontal 
continuous legends [#1774]
- `plot` gained argument "reverse" (more general then argument "decreasing" that it replaces) to reverse the order of a legend [SO 79515400]
- `spatSample<SpatRaster>(method="stratified")` now also finds cells for very small strata in big rasters (suggested by Andrea Duane).
- `plot<SpatVector>` now also has argument "fun" [#1786]
- `plot<SpatRaster/Vector>` now also has argument "sub" to set a subtitle [#1790]
- `distance<SpatVector,SpatVector>` now has argument "use_nodes" to speed things up for lon/lat data [#1722]

## new

- `writeRaster` and other methods that can write raster data can now set metadata.
- `split<SpatVector,SpatVector>` method for lines [#1374]
- `depthName`, `depthName<-`, `depthUnit`, and `depthUnit<-` methods
- `is.num<SpatRaster>` [SO 795026641]
- `simplifyLevels` to combine duplicate categories. [#1769]

# version 1.8-29

Released 2025-02-26

## bug fixes

- `cover<SpatRaster>` did not work well if multiple replacement values were supplied [#1741]
- `ext<-<SpatRaster,SpatExtent>` made a shallow copy. Reported on [SO 79440691]
- `extract<SpatRaster>` with cells only used the NA flag for the first data source. [GSE 490433]

## enhancements

- `spatSample<SpatRaster>` and `spatSample<SpatExtent>` gain argument "exact=FALSE" to request the exact (but perhaps less regular) sample size for a regular sample. Currently only for planar crs.
- `spatSample<SpatRaster>` gains argument "each=TRUE" to request, when using stratified sampling, a sample size for each stratum, or for all strata combined.
- `focal` now maintains categories with "fun=modal", "min", "max", or "first" [SO 79449904]

## new

- `clearVSIcache`. Suggested by Shannon Albeke


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 pkgsrc/geography/R-terra/Makefile
cvs rdiff -u -r1.5 -r1.6 pkgsrc/geography/R-terra/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/geography/R-terra/Makefile
diff -u pkgsrc/geography/R-terra/Makefile:1.24 pkgsrc/geography/R-terra/Makefile:1.25
--- pkgsrc/geography/R-terra/Makefile:1.24      Thu Oct 23 20:37:18 2025
+++ pkgsrc/geography/R-terra/Makefile   Sun Nov  9 22:38:12 2025
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.24 2025/10/23 20:37:18 wiz Exp $
+# $NetBSD: Makefile,v 1.25 2025/11/09 22:38:12 wiz Exp $
 
 R_PKGNAME=     terra
-R_PKGVER=      1.8-21
-PKGREVISION=   7
+R_PKGVER=      1.8-80
 CATEGORIES=    geography
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost

Index: pkgsrc/geography/R-terra/distinfo
diff -u pkgsrc/geography/R-terra/distinfo:1.5 pkgsrc/geography/R-terra/distinfo:1.6
--- pkgsrc/geography/R-terra/distinfo:1.5       Sat Feb 15 07:09:56 2025
+++ pkgsrc/geography/R-terra/distinfo   Sun Nov  9 22:38:12 2025
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.5 2025/02/15 07:09:56 mef Exp $
+$NetBSD: distinfo,v 1.6 2025/11/09 22:38:12 wiz Exp $
 
-BLAKE2s (R/terra_1.8-21.tar.gz) = 6b5b9727831abceb386ca3abe8e77c563f5318447080e6aa2805ff8e49d0f656
-SHA512 (R/terra_1.8-21.tar.gz) = 679f43f35570868c61da9df027f367ebd5522029dd560faa08960af62d642a57e85d4e0f36429a7ed429d109b7d7548d3e44f0ef2d2bce3b0beb6d202e68341d
-Size (R/terra_1.8-21.tar.gz) = 1015212 bytes
+BLAKE2s (R/terra_1.8-80.tar.gz) = 10746e1bfe93a5126f76290069840f64964c71462089e5bda03ea3810295896c
+SHA512 (R/terra_1.8-80.tar.gz) = d813b4a8257fc187098f30e5615e97f61c4960be15002595d9e98677ea6861e435c5fc3e1b674c4de41366dfbfad8d0094ea13b3ed7123affc9cf098e638984d
+Size (R/terra_1.8-80.tar.gz) = 1055312 bytes



Home | Main Index | Thread Index | Old Index