rasterpic 1.0.0
CRAN release: 2026-08-24
-
asp_ratio()now reports the supported input types whenxis invalid. -
rasterpic_img()now reports clearer inclusive-range errors whenhalignorvalignare not single numeric values. -
rasterpic_img()now reports clearer input errors for missing image files and unsupported file extensions, preserves download failure details, warns when geographic coordinates are treated as planar and emits a warning condition for images with fewer than three layers. -
rasterpic_img()now reports clearer errors when numeric bounding boxes contain missing, infinite or incorrectly ordered coordinates. -
rasterpic_img()now validatesimg,expand,crop,mask,inverseandcrsbefore processing.
rasterpic 0.5.1
CRAN release: 2026-06-23
- User-facing errors, warnings and notes now use cli alerts and inline markup for consistent argument, file and URL formatting.
-
rasterpic_img()withmask = TRUE,inverse = TRUEor both again returns aSpatRasterwith an RGB specification (terra::has.RGB()returnsTRUE).
rasterpic 0.5.0
CRAN release: 2026-05-21
- Package documentation was reviewed and updated with AI-assisted editing.
-
rasterpic_img()is now an S3 generic with methods for supported spatial input classes (#39). -
rasterpic_img()now supports stars objects.
rasterpic 0.3.1
CRAN release: 2026-01-14
- New logo.
- The minimum required R version is now 4.1.0.
- Minor internal and documentation improvements.
rasterpic 0.3.0
CRAN release: 2025-03-19
- When the output has three or more layers, the first three are renamed to
"r","g"and"b". In cases with four or more layers, the fourth layer is renamed to"alpha". This allows compatibility with tmap >= 4.0 and avoids the error! [subset] you cannot select a layer with a name that is not unique.
rasterpic 0.2.5
CRAN release: 2024-04-12
- Updated documentation.
- Made the
TitleandDescriptionfields inDESCRIPTIONmore specific.
rasterpic 0.2.4
CRAN release: 2024-01-18
- Ensured that
SpatVectorobjects always have a CRS. - If the image has fewer than three layers, the raster output does not have an RGB specification (
terra::has.RGB()isFALSE). This is expected to be a corner case. - If the image file (e.g.,
tiff) already has an RGB specification, it is preserved in the output. - Updated documentation and tests.
rasterpic 0.2.3
CRAN release: 2023-09-08
- Made
asp_ratio()an internal function. - Improved documentation and tests.
rasterpic 0.2.2
CRAN release: 2023-04-18
- Removed unused dependencies.
- Improved documentation.
- Fixed typos in messages.
- Declared the output as an RGB raster with
terra::RGB(). - Added ggplot2 to “Suggests”.
rasterpic 0.2.0
CRAN release: 2022-02-18
- Added support for:
-
terra:
SpatVector,SpatExtent. -
sf:
sfg,sf::st_bbox(). - Numeric vectors
c(xmin, ymin, xmax, ymax).
-
terra:
- The
imgparameter inrasterpic_img()now accepts image URLs. - Added an article to the pkgdown site.
- Fixed CRAN errors.
