Skip to content

sp

2.2-3

Classes and Methods for Spatial Data

453packages depend
2.7Mdownloads / year
35.2%test coverage
13/13checks pass

Overview

About
Maintained by Edzer PebesmaFirst published 2005-04-28176 releasesCRAN page ↗GitHub ↗

Classes and methods for spatial data; the classes document where the spatial location information resides, for 2D or 3D data. Utility functions are provided, e.g. for plotting data as maps, spatial selection, as well as methods for retrieving coordinates, for subsetting, print, summary, etc. From this version, 'rgdal', 'maptools', and 'rgeos' are no longer used at all, see https://r-spatial.org/r/2023/05/15/evolution4.html for details.

Install

Health

CRAN checks
13OK
Slowest check: 7.3 min · r-release-macos-x86_64
Code health
Yes
Tests · ratio 0.44
35.2%
Coverage · measured lines
99%
Documentation · exports
7
Dependencies · direct
Check history
  • OK2026-08-04
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-07-24
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-07-23
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-07-22
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Show 3 earlier snapshots
  • NOTE2026-07-11
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-04-25
    12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-03-10
    11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesYes · dynamicpkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
98%
Documented parameters
87%
Return-value docs
67%
References docs
18%

Downloads

2.7M
CRAN downloads in the past year
Rank #224 · ~7.5K/day · ~228.1K/mo
Daily download trend is not available in this view yet.
218.5K30 days
679.2K90 days
2.7M1 year
Compare downloads with other packages →
Also on60.1K r2u103 autocran285.5K conda_forge1.9K c2d4u

Repository

Repository
126Stars
28Forks
32Open issues
1Open PRs
2Releases
421Commits
12Contributors
421 commits · Last activity 2026-07-15

Repository practices

Upstream repositoryBeta

1 development-tooling and community-health practice detected across 1 family in the upstream repository

Checks run against github.com/edzer/sp on 2026-08-09.

Continuous integration (1)
GitHub Actions
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

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

Code & Tests

Datasets

People & History

People (13)
Maintainer (1)
Author, Maintainer · added in 2.10.1
Authors (2)
Author, Maintainer · added in 2.10.1
Contributors (11)
Contributor · added in 1.0-4
Contributor · added in 2.1-1
Contributor · added in 1.0-17
Contributor · added in 1.1-1
Contributor · added in 1.4-4
Contributor · added in 1.1-0
Contributor · added in 2.2-1
Contributor · added in 1.1-0
Show 3 more contributors
Contributor · added in 1.2-7
Contributor · added in 1.0-4
Contributor · added in 1.1-0
Listed in earlier versions (2)
no longer listed · 0.7-3 to 0.9-51
no longer listed · 0.7-3 to 0.9-84
Package Timeline

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

  • 2.2-3Latest
    2026-07-19 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 2.2-1
    2026-02-13 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 2.2-0
    2025-02-01 · diff ↗
  • 2.1-4
    2024-04-30 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 2.1-3
    2024-01-30 · diff ↗
  • 2.1-2
    2023-11-27 · diff ↗
  • 2.1-1
    2023-10-16 · diff ↗
  • 2.1-0
    2023-10-02 · diff ↗
  • 2.0-0
    2023-06-22 · diff ↗
  • 1.6-1
    2023-05-31 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.6-0
    2023-01-20 · diff ↗
  • 1.5-1
    2022-11-07 · diff ↗
Show 189 earlier events

Package metadata

First published
2005-04-28
Total releases
176 / 21 yrs
License
GPL (>= 2) OSI
Minimum R
≥ 3.5.0
Bundled data
73 KB / 7 files
Download size
4.3 MB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("sp")
Pebesma, E., Bivand, R., Gomez-Rubio, V., Hausmann, P., Hijmans, R., Lemon, J., Lindgren, F., MacQueen, D., Meyer, S., O'Brien, J., O'Rourke, J., Rowlingson, B., & Sumner, M. (2026). sp: Classes and Methods for Spatial Data (Version 2.2-3) [Computer software]. https://doi.org/10.32614/CRAN.package.sp

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for sp version 2.2-3 [Data set]. HJJB, LLC. Data release v2026-08-15. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-15, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy