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

s2

1.1.11

Spherical Geometry Operators Using the S2 Geometry Library

21packages depend
4.1Mdownloads / year
55.4%test coverage
8/13checks pass

Overview

About
Maintained by Edzer PebesmaFirst published 2016-11-0423 releasesCRAN page ↗GitHub ↗

Provides R bindings for Google's s2 library for geometric calculations on the sphere. High-performance constructors and exporters provide high compatibility with existing spatial packages, transformers construct new geometries from existing geometries, predicates provide a means to select geometries based on spatial relationships, and accessors extract information about geometries.

Install

Health

CRAN checks
5WARNING8OK
Failing flavors
  • WARNING r-devel-linux-x86_64-debian-clang
  • WARNING r-devel-linux-x86_64-debian-gcc
  • WARNING r-devel-linux-x86_64-fedora-clang
  • WARNING r-patched-linux-x86_64
  • WARNING r-release-linux-x86_64
Slowest check: 20.8 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 1.02
55.4%
Coverage · measured lines
100%
Documentation · exports
2
Dependencies · direct
Check history
  • WARNING2026-07-24
    12 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • WARNING2026-06-08
    12 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-06-07
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • WARNING2026-04-22
    9 OK · 3 NOTE · 2 WARNING · 0 ERROR · 0 FAILURE
Show 2 earlier snapshots
  • ERROR2026-04-18
    8 OK · 3 NOTE · 2 WARNING · 1 ERROR · 0 FAILURE
  • WARNING2026-03-10
    9 OK · 3 NOTE · 2 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 286 wordsVignettesNopkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
67%
Return-value docs
53%
References docs
5%

Downloads

4.1M
CRAN downloads in the past year
Rank #198 · ~11.2K/day · ~339.7K/mo
Daily download trend is not available in this view yet.
227.7K30 days
859.2K90 days
4.1M1 year
Compare downloads with other packages →
Also on32.5K r2u21 autocran93.8K conda_forge1.2K c2d4u

Repository

Repository
81Stars
19Forks
20Open issues
0Open PRs
11Releases
955Commits
19Contributors
955 commits · Last activity 2026-06-01 · +2.5% stars, 30d

Stars over time

2025-08-13 · 762026-08-11 · 81

Repository practices

Upstream repositoryBeta

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

Checks run against github.com/r-spatial/s2 on 2026-08-16.

Continuous integration (1)
GitHub Actions
Reproducibility and dev environment (1)
data-raw/
Docs source (1)
README.Rmd
Lint, format, editor (1)
RStudio project
Show all practices
Coverage (1)
.covrignore
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
7 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.0.0
Imports (2)
LinkingTo (2)
Suggests (3)
Enhances (0)
none

Code & Tests

People & History

People (5)
Maintainer (1)
Author, Maintainer · added in 0.3-0
Authors (3)
Author, Maintainer · added in 0.3-0
Author · added in 1.0.0
Author
Contributors (1)
Contributor
Copyright holders (1)
Copyright holder
Package Timeline

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

  • 1.1.11Latest
    2026-06-01 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 1.1.9
    2025-05-23 · diff ↗
  • 1.1.8
    2025-05-12 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 1.1.7
    2024-07-17 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 1.1.6
    2023-12-19 · diff ↗
  • 1.1.5
    2023-12-10 · diff ↗
  • 1.1.4
    2023-05-17 · diff ↗
  • 1.1.3
    2023-04-27 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.1.2
    2023-01-12 · diff ↗
  • 1.1.1
    2022-11-17 · diff ↗
  • 1.1.0
    2022-07-18 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
Show 18 earlier events
  • 1.0.7
    2021-09-28 · diff ↗
  • 1.0.6
    2021-06-17 · diff ↗
  • 1.0.5
    2021-06-01 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 1.0.4
    2021-01-05 · diff ↗
  • 1.0.3
    2020-10-14 · diff ↗
  • 1.0.2
    2020-08-03 · diff ↗
  • 1.0.1
    2020-07-13 · diff ↗
  • 1.0.0
    2020-06-28 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 0.4-2
    2019-08-30 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • 0.4-0
    2018-04-21 · diff ↗
  • 0.3-0
    2017-12-10 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • 0.1-1
    2016-11-04
  • R
    R 3.3.0 released · 2016-05-03

Package metadata

First published
2016-11-04
Total releases
23 / 10 yrs
License
Apache License (== 2.0)
Minimum R
≥ 3.0.0
Bundled data
647 KB / 4 files
Download size
2.8 MB
Installed size
not tracked yet
With dependencies
not tracked yet
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("s2")
Pebesma, E., Dunnington, D., Google, Inc., , Ooms, J., & Rubak, E. (2026). s2: Spherical Geometry Operators Using the S2 Geometry Library (Version 1.1.11) [Computer software]. https://doi.org/10.32614/CRAN.package.s2

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 s2 version 1.1.11 [Data set]. HJJB, LLC. Data release v2026-08-17. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-17, 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