Skip to content

terra

1.9-34

Spatial Data Analysis

540packages depend
2.6Mdownloads / year
34.4%test coverage
13/13checks pass

Overview

About
Maintained by Robert J. HijmansFirst published 2020-03-2065 releasesCRAN page ↗GitHub ↗

Methods for spatial data analysis with vector (points, lines, polygons) and raster (grid) data. Methods for vector data include geometric operations such as intersect and buffer. Raster methods include local, focal, global, zonal and geometric operations. The predict and interpolate methods facilitate the use of regression type (interpolation, machine learning) models for spatial prediction, including with satellite remote sensing data. Processing of very large files is supported. See the manual and tutorials on https://rspatial.org/ to get started.

Install

Health

CRAN checks
13OK
Slowest check: 44.2 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.00
34.4%
Coverage · measured lines
100%
Documentation · exports
2
Dependencies · direct
Check history
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-07
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-05-11
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-05-07
    10 OK · 0 NOTE · 0 WARNING · 3 ERROR · 0 FAILURE
  • OK2026-05-02
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Show 3 earlier snapshots
  • NOTE2026-04-22
    11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-18
    10 OK · 3 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-03-10
    11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesNopkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
97%
Documented parameters
97%
Return-value docs
72%
References docs
4%

Downloads

2.6M
CRAN downloads in the past year
Rank #219 · ~7K/day · ~213.9K/mo
Daily download trend is not available in this view yet.
344.1K30 days
739.6K90 days
2.6M1 year
Compare downloads with other packages →
Also on32.7K r2u52 autocran70K conda_forge371 c2d4u

Repository

Repository
612Stars
105Forks
19Open issues
0Open PRs
1Releases
6,648Commits
56Contributors
rrastervectorgeospatialspatialr-package
License GPL-3.0 · 6,648 commits · Last activity 2026-07-21 · +0.8% stars, 30d

Stars over time

2025-07-21 · 5712026-07-15 · 612

Repository practices

Upstream repositoryBeta

3 development-tooling and community-health practices detected across 3 families in the upstream repository

Checks run against github.com/rspatial/terra on 2026-07-19.

Continuous integration (1)
GitHub Actions
Governance and community (1)
Issue templates
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
12 external dependencies (excludes base and recommended)
Depends (2)
R >= 3.5.0methods
Imports (1)
LinkingTo (1)
Enhances (0)
none

Code & Tests

Code Composition
C++ 62,386 (51%)R 32,352 (27%)Rd 18,238 (15%)C 8,407 (7%)
Code characteristics
Object systems
S315S4 class16S4 generic364S4 method858
Cyclomatic complexity
4.0 median / 76 max
Test cases
820 / 0.00 per code line
System requirements
6 external

Test coverage

Line coverage

34%

Expression

34.8%

Tests / Examples

34.4% / 48% ex

Functions

2054 40 exported

Complexity

6.6 avg / 76 max

Call network

2054 nodes / 2735 edges

Loading call graph…

Lowest coverage

2054 functions
FunctionCycloCoverage
add_abline exp30%
add_box exp30%
add_grid exp70%
add_legend exp30%
add_mtext exp40%
ar_info exp70%

People & History

People (10)
Maintainer (1)
Maintainer, Author
Authors (3)
Maintainer, Author
Author · added in 1.8-15
Author · added in 1.8-15
Contributors (7)
Contributor
Contributor · added in 1.8-10
Contributor · added in 1.7-83
Contributor · added in 1.7-78
Contributor
Contributor · added in 1.8-10
Contributor · added in 1.5-34
Listed in earlier versions (5)
no longer listed · 0.5-2 to 0.5-8
no longer listed · 0.5-2 to 1.6-17
no longer listed · 0.5-2 to 0.5-8
no longer listed · 0.7-11 to 1.6-17
no longer listed · 1.5-12 to 1.5-21
Package Timeline

65 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 1.9-34Latest
    2026-06-19 · current release · diff ↗
  • 1.9-27
    2026-05-10 · diff ↗
  • 1.9-25
    2026-05-06 · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 1.9-11
    2026-03-26 · diff ↗
  • 1.9-1
    2026-03-08 · diff ↗
  • 1.8-93
    2026-01-12 · diff ↗
  • 1.8-86
    2025-11-28 · diff ↗
  • 1.8-80
    2025-11-05 · diff ↗
  • 1.8-70
    2025-09-27 · diff ↗
  • 1.8-60
    2025-07-21 · diff ↗
  • 1.8-54
    2025-06-01 · diff ↗
  • 1.8-50
    2025-05-09 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 1.8-42
    2025-04-02 · diff ↗
  • 1.8-29
    2025-02-26 · diff ↗
Show 57 earlier events

Package metadata

First published
2020-03-20
Total releases
65 / 6 yrs
License
GPL (>= 3) OSI
Minimum R
≥ 3.5.0
Download size
1.0 MB
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →