Skip to content
CRAN requires the check problems on this package to be fixed before 2026-08-21 or it will be archived.

sf

1.1-1

Simple Features for R

1,170packages depend
5.7Mdownloads / year
78.8%test coverage
0/13checks pass

Overview

About
Maintained by Edzer PebesmaFirst published 2016-10-2672 releasesCRAN page ↗GitHub ↗

Support for simple feature access, a standardized way to encode and analyze spatial vector data. Binds to 'GDAL' doi:10.5281/zenodo.5884351 for reading and writing data, to 'GEOS' doi:10.5281/zenodo.11396894 for geometrical operations, and to 'PROJ' doi:10.5281/zenodo.5884394 for projection conversions and datum transformations. Uses by default the 's2' package for geometry operations on geodetic (long/lat degree) coordinates.

Install

Health

CRAN checks
1ERROR12NOTE
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-clang
  • NOTE r-devel-linux-x86_64-debian-gcc
  • NOTE r-devel-linux-x86_64-fedora-clang
  • NOTE r-devel-linux-x86_64-fedora-gcc
  • NOTE r-devel-windows-x86_64
  • NOTE r-oldrel-macos-arm64
  • NOTE r-oldrel-macos-x86_64
  • NOTE r-oldrel-windows-x86_64
  • NOTE r-patched-linux-x86_64
  • NOTE r-release-linux-x86_64
  • NOTE r-release-macos-arm64
  • NOTE r-release-macos-x86_64
  • ERROR r-release-windows-x86_64
Slowest check: 24.1 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.77
78.8%
Coverage · measured lines
100%
Documentation · exports
11
Dependencies · direct
Check history
  • ERROR2026-07-19
    0 OK · 12 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-06-08
    2 OK · 10 NOTE · 0 WARNING · 0 ERROR · 1 FAILURE
  • ERROR2026-06-07
    2 OK · 10 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-05-02
    6 OK · 7 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-25
    4 OK · 7 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
Show 5 earlier snapshots
  • NOTE2026-04-22
    4 OK · 10 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-18
    3 OK · 10 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-04-11
    4 OK · 10 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-09
    3 OK · 10 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-03-10
    3 OK · 11 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
95%
Documented parameters
93%
Return-value docs
64%
References docs
1%

Downloads

5.7M
CRAN downloads in the past year
Rank #167 · ~15.6K/day · ~475.9K/mo
Daily download trend is not available in this view yet.
334.8K30 days
1.1M90 days
5.7M1 year
Compare downloads with other packages →
Also on33K r2u163 autocran102.5K conda_forge888 c2d4u

Repository

Repository
1,439Stars
301Forks
57Open issues
5Open PRs
8Releases
5,536Commits
128Contributors
rspatialgdalgeosprojr-packagerstats
5,536 commits · Last activity 2026-07-20 · +0.4% stars, 30d

Stars over time

2025-07-22 · 1,3652026-07-16 · 1,439

Repository practices

Upstream repositoryBeta

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

Checks run against github.com/r-spatial/sf on 2026-07-19.

Continuous integration (2)
GitHub Actionstic
Lint, format, editor (1)
RStudio project
Coverage (1)
Codecov
Governance and community (1)
Issue templates
Show all practices
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Code & Tests

Code Composition
R 21,047 (47%)C++ 10,109 (22%)Rd 6,232 (14%)Other 5,142 (11%)Vignettes 2,322 (5%)C 95 (0%)
Code characteristics
Object systems
S3375S4 method4
Cyclomatic complexity
1.0 median / 71 max
Test cases
239 / 0.77 per code line
System requirements
4 external

Test coverage

Line coverage

79%

Expression

76.1%

Tests / Examples

78.8% / 56% ex

Functions

1242 151 exported

Complexity

2.9 avg / 71 max

Call network

1242 nodes / 1967 edges

Loading call graph…

Lowest coverage

1242 functions
FunctionCycloCoverage
gdal_compressors exp10%
gdal_create exp10%
gdal_extract exp10%
gdal_subdatasets exp30%
gdal_write_mdim exp10%
sf_proj_network exp30%

People & History

People (14)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Contributors (13)
Contributor · added in 0.8-0
Contributor
Contributor
Contributor · added in 1.1-1
Contributor · added in 1.0-0
Contributor
Contributor
Contributor · added in 0.6-2
Show 5 more contributors
Contributor
Contributor · added in 0.7-3
Contributor · added in 0.3-0
Contributor
Contributor
Listed in earlier versions (2)
no longer listed · 0.8-1
no longer listed · 0.9-0 to 1.1-1
Package Timeline

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

  • 1.1-1Latest
    2026-05-06 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 1.1-0
    2026-02-24 · diff ↗
  • 1.0-24
    2026-01-13 · diff ↗
  • 1.0-23
    2025-11-28 · diff ↗
  • 1.0-22
    2025-11-10 · diff ↗
  • 1.0-21
    2025-05-15 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 1.0-20
    2025-03-24 · diff ↗
  • 1.0-19
    2024-11-05 · diff ↗
  • 1.0-18
    2024-10-11 · diff ↗
  • 1.0-17
    2024-09-06 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 1.0-16
    2024-03-25 · diff ↗
  • 1.0-15
    2023-12-18 · diff ↗
  • 1.0-14
    2023-07-11 · diff ↗
Show 67 earlier events

Package metadata

First published
2016-10-26
Total releases
72 / 10 yrs
License
GPL-2 | MIT + file LICENSE OSI
Minimum R
≥ 4.1.0
Download size
9.4 MB
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →