Submitting Author: Rosa Flx (@temospena) Repository: https://github.com/ITSLeeds/slopes Version submitted: 0.0.1 Editor: TBD Reviewer 1: TBD Reviewer 2: TBD Archive: TBD Version accepted: TBD --- - Paste the full DESCRIPTION file inside a code block below: ``` Package: slopes Title: Calculate Slopes of Roads, Rivers and Trajectories Version: 0.0.0.9000 Authors@R: c( person("Robin", "Lovelace", email = "rob00x@gmail.com", role = c("aut","cre"), comment = c(ORCID = "0000-0001-5679-6536")), person("Joey", "Talbot", email = "j.d.talbot@leeds.ac.uk", role = c("aut"), comment = c(ORCID = "0000-0002-6520-4560")), person("Rosa", "Félix", email = "rosamfelix@tecnico.ulisboa.pt", role = c("aut"), comment = c(ORCID = "0000-0002-5642-6006")) ) Description: Functions and example data to support research into 'longitudinal gradient' (slope) of linear geographic entities, as defined in the context of rivers by Cohen et al. (2018) <doi:10.1016/j.jhydrol.2018.06.066>. The package was initially developed to research road slopes but has also been used to calculate and visualise slopes of rivers and, using an open dataset published by Javier Ariza-López et al. (2019) <doi:10.1038/s41597-019-0147-x>, trajectories representing movement on roads. The package takes two main types of input data for slope calculation: vector geographic objects representing linear features, and raster geographic objects with elevation values (which can be downloaded using functionality in the package) representing a continuous terrain surface. License: GPL-3 URL: https://github.com/itsleeds/slopes/, https://itsleeds.github.io/slopes/ Encoding: UTF-8 LazyData: true Roxygen: list(markdown = TRUE) RoxygenNote: 7.1.1 Imports: sf, raster, methods Depends: R (>= 2.10) Suggests: geodist, pbapply, terra, colorspace, knitr, rmarkdown, ceramic, bookdown VignetteBuilder: knitr ``` ## Scope - Please indicate which category or categories from our [package fit policies](https://ropensci.github.io/dev_guide/policies.html#package-categories) this package falls under: (Please check an appropriate box below. If you are unsure, we suggest you make a pre-submission inquiry.): - [x] data retrieval - [ ] data extraction - [ ] data munging - [ ] data deposition - [ ] workflow automation - [ ] version control - [ ] citation management and bibliometrics - [ ] scientific software wrappers - [ ] field and lab reproducibility tools - [ ] database software bindings - [x] geospatial data - [ ] text analysis - Explain how and why the package falls under these categories (briefly, 1-2 sentences): The `slopes` package retreives elevation data via an interface to the `ceramic` package, enabling estimation of hilliness for routes anywhere worldwide even when local elevation data is lacking. The main category is geospatial data: the package takes geographic lines objects and returns elevation data per vertex (providing the output as a 3D point geometry in the `sf` package by default) and per line feature (providing average gradient by default). - Who is the target audience and what are scientific applications of this package? The target audience is academic researchers, practitioners, consultants and citizens interested in elevation profiles and slopes worldwide. A growing number of people working with geospatial data and require accurate estimates of gradient. An example of the demand for data provided by the package is a map showing gradients across Sao Paulo (Brazil, see image below) that has received more the 100 'likes' on Twitter and generated convervations: https://twitter.com/DanielGuth/status/1347270685161304069 ![](https://pbs.twimg.com/media/ErJ2dr8WMAIHwMn?format=jpg&name=large) **Transport planning practitioners** require accurate estimates of roadway gradient for estimating energy consumption, safety and mode shift potential in hilly cities (such as Lisbon, the case study city used in the README and examples in the documentation). **Natural hazard researchers and risk assessors** require estimates of linear gradient to inform safety and mitigation plans associated with project on hilly terrain. **Aquatic ecologists** ... - Are there other R packages that accomplish the same thing? If so, how does yours differ or meet [our criteria for best-in-category](https://ropensci.github.io/dev_guide/policies.html#overlap)? The package fills a niche in R's geospatial package ecosystem. It is the only R package for easy slope computation of a line segment (or several) . It is also the only open source tool dedicated to the estimation of slopes on linear features in any language, as far as we are aware. We have benchmarked the results against a market leading proprietary implementation (ArcMap's 3D Analyst Extension). We would like to add more cross-comparisons of slope estimates obtained with this package and other implementations. - (If applicable) Does your package comply with our [guidance around _Ethics, Data Privacy and Human Subjects Research_](https://devguide.ropensci.org/policies.html#ethics-data-privacy-and-human-subjects-research)? To add - see https://github.com/ropensci/software-review/issues/395 **VERIFY**:_We believe the package complies with ethical guidelines in the Internet Research: [Ethical Guidelines 3.0 document](https://aoir.org/reports/ethics3.pdf). It makes it easier for researchers to access and make use of data that is already in the public domain, under the conditions of the adhering to the conditions of the [OdBL](https://opendatacommons.org/licenses/odbl/)._ - If you made a pre-submission enquiry, please paste the link to the corresponding issue, forum post, or other discussion, or @tag the editor you contacted. ## Technical checks Confirm each of the following by checking the box. - [x] I have read the [guide for authors](https://devguide.ropensci.org/guide-for-authors.html) and [rOpenSci packaging guide](https://devguide.ropensci.org/building.html). This package: - [x] does not violate the Terms of Service of any service it interacts with. - [x] has a CRAN and OSI accepted license. - [x] contains a [README with instructions for installing the development version](https://ropensci.github.io/dev_guide/building.html#readme). - [ ] includes [documentation with examples for all functions, created with roxygen2](https://ropensci.github.io/dev_guide/building.html#documentation). - [x] contains a vignette with examples of its essential functions and uses. - [x] has a [test suite](https://ropensci.github.io/dev_guide/building.html#testing). (We have a test suite but with low coverage, we aim to increase coverage of functions tested.) - [x] has [continuous integration](https://ropensci.github.io/dev_guide/ci.html), including reporting of test coverage using services such as Travis CI, Coveralls and/or CodeCov. ## Publication options - [x] Do you intend for this package to go on CRAN? - [ ] Do you intend for this package to go on Bioconductor? - [x] Do you wish to automatically submit to the [Journal of Open Source Software](http://joss.theoj.org/)? If so: <details> <summary>JOSS Options</summary> - [x] The package has an **obvious research application** according to [JOSS's definition](https://joss.readthedocs.io/en/latest/submitting.html#submission-requirements). - [ ] The package contains a `paper.md` matching [JOSS's requirements](https://joss.readthedocs.io/en/latest/submitting.html#what-should-my-paper-contain) with a high-level description in the package root or in `inst/`. - [ ] The package is deposited in a long-term repository with the DOI: - (*Do not submit your package separately to JOSS*) </details> - [ ] Do you wish to submit an Applications Article about your package to [Methods in Ecology and Evolution](http://besjournals.onlinelibrary.wiley.com/hub/journal/10.1111/(ISSN)2041-210X/)? If so: <details> <summary>MEE Options</summary> - [ ] The package is novel and will be of interest to the broad readership of the journal. - [ ] The manuscript describing the package is no longer than 3000 words. - [ ] You intend to archive the code for the package in a long-term repository which meets the requirements of the journal (see [MEE's Policy on Publishing Code](http://besjournals.onlinelibrary.wiley.com/hub/journal/10.1111/(ISSN)2041-210X/journal-resources/policy-on-publishing-code.html)) - (*Scope: Do consider MEE's [Aims and Scope](http://besjournals.onlinelibrary.wiley.com/hub/journal/10.1111/(ISSN)2041-210X/aims-and-scope/read-full-aims-and-scope.html) for your manuscript. We make no guarantee that your manuscript will be within MEE scope.*) - (*Although not required, we strongly recommend having a full manuscript prepared when you submit here.*) - (*Please do not submit your package separately to Methods in Ecology and Evolution*) </details> ## Code of conduct - [x] I agree to abide by [rOpenSci's Code of Conduct](https://ropensci.github.io/dev_guide/policies.html#code-of-conduct) during the review process and in maintaining my package should it be accepted.