Repository navigation
Description
Submitting Author: Andrea Gilardi (@agila5)
Repository: https://github.com/ITSLeeds/osmextract
Version submitted: 0.1.0
Editor: @annakrystalli
Reviewer 1: @potterzot
Reviewer 2: @salvafern
Archive: TBD
Version accepted: TBD
- Paste the full DESCRIPTION file inside a code block below:
Package: osmextract
Type: Package
Title: Download and Read OpenStreetMap Data Extracts
Version: 0.1.0
Authors@R: c(
person("Andrea", "Gilardi", email = "a.gilardi5@campus.unimib.it", role=c("aut", "cre"),
comment = c(ORCID = "0000-0002-9424-7439")),
person("Robin", "Lovelace", role = c("aut"),
comment = c(ORCID = "0000-0001-5679-6536")),
person("Barry", "Rowlingson", role=c("ctb"),
comment = c(ORCID = "0000-0002-8586-6625"))
)
Description: This package is used to download, convert and read Open Street
Map data extracts downloaded from several providers.
License: GPL-3
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.1.1
Roxygen: list(markdown = TRUE)
URL: https://github.com/itsleeds/osmextract
BugReports: https://github.com/itsleeds/osmextract/issues
Depends: R (>= 3.5.0)
Imports:
sf (>= 0.8.1),
utils,
tools
Suggests:
testthat,
knitr,
rmarkdown,
covr
VignetteBuilder: knitr
Scope
-
Please indicate which category or categories from our package fit policies this package falls under: (Please check an appropriate box below. If you are unsure, we suggest you make a pre-submission inquiry.):
- 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
- geospatial data
- text analysis
-
Explain how and why the package falls under these categories (briefly, 1-2 sentences):
osmextract is for accessing and downloading OpenStreetMap data from a variety (current 2) of providers. OpenStreetMap has numerous scientific applications, including in transport, ecological analysis of human impacts on the environment, spatial statistics and land use change and the package provides a way of extracting the unstructure compressed .pbf files into modern geographic data structures (sf data frames).
- Who is the target audience and what are scientific applications of this package?
The target audience is researchers, practitioners and citizens who want to use OpenStreetMap data for scientific research, especially people who require large datasets (from city to continental scale) for their work.
- Are there other R packages that accomplish the same thing? If so, how does yours differ or meet our criteria for best-in-category?
osmdata provides an R interface to the Overpass API, which is ideal for downloading small OSM datasets. However, the API is rate limited, making it hard to download large datasets.
- (If applicable) Does your package comply with our guidance around Ethics, Data Privacy and Human Subjects Research?
We believe the package complies with ethical guidelines in the Internet Research: Ethical Guidelines 3.0 document.
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.
- 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.
- I have read the guide for authors and rOpenSci packaging guide.
This package:
- does not violate the Terms of Service of any service it interacts with.
- has a CRAN and OSI accepted license.
- contains a README with instructions for installing the development version.
- includes documentation with examples for all functions, created with roxygen2.
- contains a vignette with examples of its essential functions and uses.
- has a test suite.
- has continuous integration, including reporting of test coverage using services such as Travis CI, Coveralls and/or CodeCov.
Publication options
- Do you intend for this package to go on CRAN?
- Do you intend for this package to go on Bioconductor?
- Do you wish to automatically submit to the Journal of Open Source Software? If so:
JOSS Options
- The package has an obvious research application according to JOSS's definition.
- The package contains a
paper.mdmatching JOSS's requirements with a high-level description in the package root or ininst/. - The package is deposited in a long-term repository with the DOI:
- (Do not submit your package separately to JOSS)
- The package contains a
- Do you wish to submit an Applications Article about your package to Methods in Ecology and Evolution? If so:
MEE Options
- 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)
- (Scope: Do consider MEE's Aims and Scope 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)
Code of conduct
- I agree to abide by rOpenSci's Code of Conduct during the review process and in maintaining my package should it be accepted.
Activity
annakrystalli commentedon Sep 29, 2020
Hello @agila5 and many thanks for your submission! Apologies for the slow response but many of us have been on holiday.
I'll be your editor for this submission and will begin initial editor's checks now. Will be back in touch shortly! 👍
annakrystalli commentedon Sep 30, 2020
Editor checks:
Editor comments
Hello again @agila5 ! 👋
I've now completed an initial pass of editor's checks. There's a few minor points but most importantly there is n error when building one of the vignettes (see below) and this is causing problems for me to fully complete the checks.
If you could have a look and let me know when it's sorted, I can have another look. 👍
Problem with building vignettes
I'm hitting a problem when building the vignettes from source locally, with same issue building from GitHub also:
This is also causing problems when running
devtools::check().Created on 2020-09-29 by the reprex package (v0.3.0)
Warning during testing
devtools::test()throws an error in:and bunch of warnings
Created on 2020-09-29 by the reprex package (v0.3.0)
goodpractice output
There's a few minor issues flagged by
goodpractice::gp()Created on 2020-09-29 by the reprex package (v0.3.0)
agila5 commentedon Oct 1, 2020
Hi @annakrystalli. First of all, thank you very much for testing our R package and helping us make it better.
I tried to reproduce the errors using my laptop (running Windows 10) and a server (running Ubuntu 16.04), but I couldn't replicate it. Could you please share the output of
sessionInfo()andsf::sf_extSoftVersion()? @Robinlovelace suggested it may be a problem related to an old version of GDAL. Moreover, we recently changed theosmextract.Rmdvignette, could you please try running the checks using the most recent version of the package?I think that the error in
devtools::testhas the same root cause as the error when installing the package.The warning messages are caused by a version of GDAL that does not support WKT, while the provider's data in
osmextractwas created using WKT. The problem is documented in the sf issue tracker. I added a note in the README:https://github.com/ITSLeeds/osmextract/blob/1655ab4186c9a1402584234c3a9e808659940044/README.Rmd#L178-L187
and a warning message in
.onLoad():https://github.com/ITSLeeds/osmextract/blob/1655ab4186c9a1402584234c3a9e808659940044/R/zzz.R#L12-L25
These warnings will tend to fade as OSs update and should disapper when installing newer version of PROJ and GDAL.
Sorry for these problems, we'll try to fix them as soon as possible.
mpadge commentedon Oct 1, 2020
For what it's worth, the package installs and tests clean on my (linux) system with absolute latest versions of everything (well, okay, not yet R4.0.3 😏):
Created on 2020-10-01 by the reprex package (v0.3.0)
(Tests just give the couple of warnings about
st_centroidapplied to lon-lat data.)annakrystalli commentedon Oct 4, 2020
Thanks for the prompt response @agila5 !
The message is useful as is the note in the README. However I would move that to the installation section and be explicit about the minimum versions of the GDAL and PROJ libraries required for full functionality.
Now onto the fix I had a few issues with (so anticipate others might too!). Apologies for not sharing platform details earlier! Indeed I am on macos, here's full platform info:
I've now updated
GDALto 3.1.2 using homebrew which also updatedPROJ4library to 7.1.1Just a note that I kept getting an error even after reinstalling
sffrom CRAN. It was still linking to an earlier version of proj.FYI, I solved it by:
PKG_CONFIG_PATHto, in my case,/usr/local/lib/pkgconfig/, the path to to thepkgconfig/directory containing aproj.pcfile with details of the newest version, as suggested in this issue.sffrom GitHub withremotes::install_github("r-spatial/sf")(reinstalling from CRAN didn't solve the linking problem)Which now works!
But! I'm still having issues, see below:
tests
checks
Also a couple more related errors in examples being thrown up by
devtools::check()goodpractice
A few more minor issues thrown up by GP
spellcheck
One valid (from what I can tell) spelling error thrown up by
devtools::spell_check()Coverage
I still can't get a coverage breakdown because I'm getting the same error when running
covr::package_coverage()Any ideas? It seems @mpadge didn't hit this issue 🤔
agila5 commentedon Oct 6, 2020
Hi @annakrystalli, and thank you very much again for your feedback.
I just moved the warning message in the installation section, thanks!
We decided to adopt
=as the assignment operator, so the first set of warning messages is somewhat "expected". I recently changed some of the "long lines of code" and, at the moment, the remaining ones should represent only long URL(s). I'm not sure about the UTF8 strings, but I think that's not a big deal.Fixed!
First of all, thanks for your useful feedback , I will add a link to the README pointing to this discussion as soon as we fix these problems. Unfortunately, I have very little experience with macOS +
sf, so I have no idea what's going on 😢 The only thing that I may suggest is running (I read the following command here):The first line of code should overwrite the previous version of
sf, and install a "new" binary version with its own GEOS/GDAL/PROJ. The main drawback is that this "new" version ofsfis not linked to the external GEOS/GDAL/PROJ (and this is the same behaviour that occurs on Windows, I think. @Robinlovelace please correct me here). I checked this approach with a friend of mine, and we installed theosmextractpackage without any problem.Another question: do you face any problem when you install another R package that depends on
sf?EDIT: More info on the error in
devtools::test(). I think that the error inoe_read()is caused by an erroneous installation ofosmextract. The first two lines of that test are:https://github.com/ITSLeeds/osmextract/blob/4fafa757fe0c7f701bd1b4833113346843ed6b1a/tests/testthat/test-read.R#L1-L2
Then, the object
fis passed tooe_read(), which returns an error since (for some reason that I don't understand),fdoes not link any existing file and it's not a URL.annakrystalli commentedon Oct 7, 2020
Hi @agila5 ! And thanks for your response!
BTW I did manage to install! I just had to follow these steps to get everything to work properly:
But do you think the test failure and broken example still are an
sfinstallation issue? The main issue in tests and checks seems to be:agila5 commentedon Oct 7, 2020
I think that the error is caused by some problems related to the installation of
osmextract. The functionoe_readis used to read-in a.pbfor.gpkgfile, that can be specified using a file-path or a URL. It should fail only in two cases: 1) the input data points to a non-existing file or 2) the input data points to a non-existing URL.The object
my_pbfshould represent the path to theits-example.osm.pbffile, which is one of the files included in the package (see https://github.com/ITSLeeds/osmextract/tree/master/inst). For example, I see:Could you compare that output with the analogous command on macOS? That example is clearly failing, and (I think) that should imply that there were some problems during the installation of the package. Could you try reinstalling it again?
I can succesfully replicate the same behaviour only when I run
devtools::testafter deleting the"its-example.osm.pbf"file (which is clearly a patological example):Created on 2020-10-07 by the reprex package (v0.3.0)
Sorry for all installation problems 😢
annakrystalli commentedon Nov 2, 2020
Hi @agila5 and many many apologies for the delay!! I completely missed your response 🤦♀️. I'll have a look at this today!
33 remaining items
annakrystalli commentedon Jan 27, 2021
Ah ok, I will invite @Robinlovelace to the team also if that will make transfer easier.
salvafern commentedon Jan 27, 2021
Hi @agila5, you can add me to the package's description as reviewer. Thank you!
Robinlovelace commentedon Jan 27, 2021
Hi guys, great to see the outcome of the review process, it definitely made the package better, very grateful for all the input. The fact that this now works is awesome (showing the road network in my hometown):
Created on 2021-01-27 by the reprex package (v0.3.0)
Will look to transfer the repo now.
Robinlovelace commentedon Jan 27, 2021
Job done:
agila5 commentedon Jan 27, 2021
Thanks! Now I will take care of the other points.
agila5 commentedon Jan 27, 2021
Dear @annakrystalli, first of all thank you very much again for your support during the review process.
A few hours ago @Robinlovelace transferred the repository to rOpenSci and I think I just completed the steps you mentioned in your previous comments (and I will add @potterzot as reviewer as soon as he agrees). In the next weeks we will also add a short introduction presenting the main functionalities in our package.
econpotter commentedon Jan 27, 2021
@agila5 yes I would be happy to be added, thanks!
stefaniebutland commentedon Jan 29, 2021
@agila5 Congratulations on your osmextract passing review! I was happy to hear from Mark Padgham that you would like to write a post for the rOpenSci blog 😄. Timing is flexible; I understand you're very busy right now.
When you're ready, please submit a draft post by pull request, following instructions in https://blogguide.ropensci.org/. Then my colleague @steffilazerte will review it and suggest a publication date. Cheers!
agila5 commentedon Jan 30, 2021
Dear @stefaniebutland, thank you very much. I'm pleased to write a blog post for rOpenSci introducing
osmextractand the Open Street Map ecosystem. As I said to Mark, I hope to write the first draft during the second half of January.Ok!
annakrystalli commentedon Feb 1, 2021
Thanks @agila5. If everything is now complete I will go ahead and close this issue now.
I have also made you full admin of the repo again too. Look forward to the blogpost!
One last thing. I just noticed that the package version is still the same as that submitted (0.1.0). Given the changes that have been made, the version should now be different. You might want to add a
NEWS.mdfile to keep track of these and future changes associated with new package versions.agila5 commentedon Feb 2, 2021
Dear @annakrystalli, thank you very much for your suggestions. We just released a new version and created the NEWS file.
annakrystalli commentedon Feb 2, 2021
Fantastic! Don't forget to change the version on your
DESCRIPTIONfile 😉agila5 commentedon Feb 2, 2021
Ops, thanks, fixed that 😅
Robinlovelace commentedon Feb 2, 2021
Does it automatically ICYMI 🎉