rasterpic: Convert Digital Images into 'SpatRaster' Objects

Create 'SpatRaster' objects, as defined by the 'terra' package, from digital images using a spatial object as a geographic reference. Supported inputs include objects from the 'sf', 'terra' and 'stars' packages. The main function is an S3 generic, so other packages can provide methods for additional spatial classes.

Version: 0.5.0
Depends: R (≥ 4.1.0)
Imports: png, sf (≥ 1.0.0), terra (≥ 1.8-21)
Suggests: doclisting, ggplot2, knitr, quarto, stars, testthat (≥ 3.0.0), tidyterra
Published: 2026-05-21
DOI: 10.32614/CRAN.package.rasterpic
Author: Diego Hernangómez ORCID iD [aut, cre, cph]
Maintainer: Diego Hernangómez <diego.hernangomezherrero at gmail.com>
BugReports: https://github.com/dieghernan/rasterpic/issues
License: MIT + file LICENSE
URL: https://dieghernan.github.io/rasterpic/, https://github.com/dieghernan/rasterpic
NeedsCompilation: no
Citation: rasterpic citation info
Materials: README, NEWS
CRAN checks: rasterpic results

Documentation:

Reference manual: rasterpic.html , rasterpic.pdf
Vignettes: Get started (source, R code)

Downloads:

Package source: rasterpic_0.5.0.tar.gz
Windows binaries: r-devel: rasterpic_0.5.0.zip, r-release: rasterpic_0.4.0.zip, r-oldrel: rasterpic_0.4.0.zip
macOS binaries: r-release (arm64): rasterpic_0.5.0.tgz, r-oldrel (arm64): rasterpic_0.5.0.tgz, r-release (x86_64): rasterpic_0.4.0.tgz, r-oldrel (x86_64): rasterpic_0.4.0.tgz
Old sources: rasterpic archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=rasterpic to link to this page.