Skip to content

slopes

2.0.0

Calculate Slopes of Roads, Rivers and Trajectories

0packages depend
2.1Kdownloads / year
70.9%test coverage
13/13checks pass

Overview

About
Maintained by Robin LovelaceFirst published 2025-06-233 releasesCRAN page ↗GitHub ↗

Calculates the slope (longitudinal gradient or steepness) of linear geographic features such as roads (for more details, see Ariza-López et al. (2019) doi:10.1038/s41597-019-0147-x) and rivers (for more details, see Cohen et al. (2018) doi:10.1016/j.jhydrol.2018.06.066). It can use local Digital Elevation Model (DEM) data or download DEM data via the 'ceramic' package. The package also provides functions to add elevation data to linestrings and visualize elevation profiles.

Install

Health

CRAN checks
13OK
Slowest check: 2.5 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.30
70.9%
Coverage · measured lines
100%
Documentation · exports
6
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-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 572 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
99%
Return-value docs
91%
References docs
0%

Downloads

2.1K
CRAN downloads in the past year
Rank #16,259 · ~6/day · ~178/mo
Daily download trend is not available in this view yet.
21930 days
65090 days
2.1K1 year
Compare downloads with other packages →
Also on121 r2u14 autocran

Repository

Repository
77Stars
8Forks
4Open issues
0Open PRs
3Releases
357Commits
8Contributors
License GPL-3.0 · 357 commits · Last activity 2026-06-25 · 0% stars, 30d

Stars over time

2025-06-14 · 712026-07-07 · 77

Repository practices

Upstream repositoryBeta

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

Checks run against github.com/ropensci/slopes on 2026-08-16.

Continuous integration (2)
GitHub Actionstic
Reproducibility and dev environment (1)
data-raw/
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Docs source (1)
README.Rmd
Show all practices
Research and citation (2)
codemeta.jsonJOSS paper
Lint, format, editor (1)
RStudio project
Coverage (1)
Codecov
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
18 external dependencies (excludes base and recommended)
Depends (1)
R >= 2.10
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

People & History

People (6)
Maintainer (1)
Author, Maintainer, Copyright holder
Authors (4)
Author, Maintainer, Copyright holder
Copyright holders (1)
Author, Maintainer, Copyright holder
Reviewers (2)
Reviewer
Reviewer
Package Timeline

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

  • 2.0.0Latest
    2026-06-25 · current release · diff ↗
  • 1.0.2
    2026-06-17 · diff ↗
  • unarchivedReturned to CRAN
    2026-06-17
  • archivedRemoved from CRAN
    2026-05-24
    issues were not corrected in time
  • R
    R 4.6.0 released · 2026-04-24
  • 1.0.1
    2026-03-10
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2025-06-23
Total releases
3 / 1 yrs
License
GPL-3 OSI
Minimum R
≥ 2.10
Bundled data
109 KB / 9 files
Download size
2.1 MB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("slopes")

The authors publish a JOSS paper, so they have said how they want this cited. Run citation() and use what it gives you.

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

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