Convert Images to Spatially Referenced 'SpatRaster' Objects
Overview
Convert digital images to spatially referenced 'SpatRaster' objects, as defined by the 'terra' package, using coordinates from supported spatial input classes. Supported inputs include numeric coordinate vectors and objects from the 'sf', 'terra' and 'stars' packages. The main function is an S3 generic, allowing other packages to extend support to additional spatial classes.
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.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-08
- NOTE12 OK, 1 NOTE2026-06-07
- OK14 OK2026-03-10
Documentation
The repository also keeps web-only articles.
- Help pages
- 3 (2 internal)includes a package overview page
- Examples that run
- 0%2 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
- Get started HTML
Downloads
Repository
- PRs merged (all time)
- 74%
- Median days to close, 50 most recently updated closed issues
- 0
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
25 development-tooling and community-health practices detected across 10 families in the upstream repository
Checks run against github.com/dieghernan/rasterpic on 2026-10-21.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Funding links: GitHub Sponsors, Ko-fi
The repository owner accepts GitHub Sponsors
GitHub Pages site last deployed 2026-10-17 · The repository has a site deploy workflow
pkgdown site last built 2026-10-17
Show all practicesHide 6 practices
This repository shows signs of AI coding tools.
- GitHub Copilotfirst seen 2026-03-21Seen in the repository: .github/agents, .github/skillsCommits: at least 1 crediting it in the message
- Claude Codefirst seen 2026-04-25Seen in the repository: .claudeNamed in .Rbuildignore: .claude
- Codexfirst seen 2026-07-18Seen in the repository: .codexNamed in .Rbuildignore: .codex
Dependencies
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 1.0.0Latest
- 0.5.12026-06-23 · diff ↗
- 0.5.02026-05-21 · diff ↗
- RR 4.6.0 released · 2026-04-24
- 0.4.02026-03-21 · diff ↗
- 0.3.12026-01-15 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 0.3.02025-03-19 · diff ↗
- 0.2.62024-12-17 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 0.2.52024-04-12 · diff ↗
- 0.2.42024-01-18 · diff ↗
- 0.2.32023-09-08 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 0.2.22023-04-18 · diff ↗
- 0.2.12022-06-10 · diff ↗
Package metadata
- First published
- 2022-01-27
- Total releases
- 14 / 4 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1.0
- Download size
- 2.3 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("rasterpic")The package provides a citation file that builds its entry when R runs it. Run citation() to see it.
The repository also keeps a CITATION.cff.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.