-
-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
opencage -- a R package for the opencage API (forward and reverse geocoding) #36
Comments
Thanks for your submission! Seeking reviewers now |
Reviewers: @juliasilge |
@juliasilge I'll add info about remaining calls/rate limit in the output this week-end, it's missing right now. |
General Comments
Tests
|
Thank you so much, @juliasilge! I will do my homework this week-end. 😊 |
Thanks again for this very precise review. It was really awesome to get your feedback on this package, @juliasilge! I like memoise very much since Bob (Rudis) told me about it and this package was a great opportunity for me to test it. I actually had time to make the necessary changes while waiting for other codes to run. Most changes were straightforward to make because they were well explained + I won't discuss English language issues and I really appreciate your being picky since I'm not a native speaker! Regarding multiple results, I added a paragraph in the README, vignette and Rd "Regarding multiple results, the API doc states that "In cases where the geocoder is able to find multiple matches, the geocoder will return multiple results. The confidence or coordinates for each result should be examined to determine whether each result from an ambiguous query is sufficiently high to warrant using a result or not. A good strategy to reduce ambiguity is to use the optional bounds parameter described below to limit the area searched." Multiple results might mean you get a result for the airport and a road when querying a city name, or results for cities with the same name in different countries." Is it sufficient? I added three examples to the README and vignette with I changed the paragrapher about the API key, many thanks for re-phrasing it! The tests in I now get only one NOTE, "Authors@R field gives persons with no valid roles: Julia Silge [rev]" -> @sckott I will have to explain this when submitting to CRAN, won't I? Thanks a lot @juliasilge regarding the global bindings. I had no idea what to do with them. I hope I haven't missed anything. Many thanks for helping me improve the package! |
I have a question regarding CRAN submission: the vignette will not build on CRAN, how should I make this clear? |
no idea about For the vignette, don't know how to have it not build on CRAN - i cheat by building it to |
@sckott in which repo could I see an example of your vignette strategy/cheating? & do you comment on this in the comments when submitting? |
e.g,. https://github.com/ropensci/geojsonio no - they don't check this - it's only cheating b/c ideally the vignette will build on check/etc. so you know it works, but if you can't expect it to work in all scenarios (e.g., web APIs, env keys needed, etc.) then can build beforehand the |
Ok, thanks a lot. I hope I'll deal with this well. I'll submit to CRAN once I hear Julia's opinion about the changes. |
Despite earlier discussions about |
@richfitz but I guess commenting on |
I think it's a reasonable field to have, and would be worth seeing if CRAN are willing to accept it. They may update the fields or suggest some other way of handling this that they will tolerate. Add it to your comments and let us know how it goes down |
@richfitz ok! This will be my first CRAN submission so I have to brace myself for rejection anyway. |
The function used by On Thu, Apr 28, 2016 at 9:58 AM Maëlle Salmon [email protected]
|
@noamross thanks but then why do I get the NOTE on Travis and Appveyor?
|
probably the
|
aha, here it is: https://github.com/wch/r-source/blob/0ae4ee0180c641a6bd2e7a8b1d2ea9f21b5f36b7/src/library/tools/R/check.R#L683-L690 (there's a certain irony that the QC system is so hard to navigate through) |
@richfitz well it's not hard to navigate through when someone like you gives one all useful links, many thanks! So on CRAN |
I have no idea - all I know is there are two calls to that function, one with |
I have just looked at the help of "? person" as suggested in https://cran.r-project.org/doc/manuals/r-release/R-exts.html and it only shows the "strict" roles and before that it's written that "The new scheme also adds the possibility of specifying roles based on a subset of the MARC Code List for Relators ". So I'm not sure I'll be able to have a 'rev' person, but it's worth trying. |
But in https://journal.r-project.org/archive/2012-1/RJournal_2012-1_Hornik~et~al.pdf "**In general, while all MARC relator codes are supported, |
This is looking SO great! ✨✨✨ The new examples in the README/vignette are really good and clear, and the package is coming together so well. I only have small changes to suggest now for consistency and readability in the documentation. Thank you so much for adding me as a reviewer in the README
|
Oh, and I have not thought or looked at examples at how to have the vignette not build on CRAN at this point. |
I describe how I suppress vignette building on CRAN here in a googlesheets vignette. |
Thanks @juliasilge & @jennybc! You make improving this pkg such a pleasure! 😊 |
@juliasilge I've now made all changes! Unless I forgot one comment 😬. The documentation reads much better now, many thanks! You've been so patient about the bad punctuation! Once you'll be happy with the changes I'll prepare the CRAN submission using @jennybc's and @sckott's suggestions about the vignette. 😸 |
I have gone through the package one more time and things look great to me. I would probably recommend making the title and subtitle in the vignette title case("R Package for the OpenCage API" and "Forward and Reverse Geocoding") but other than that, I think this is good to go from my perspective. 👍👍 |
Thank you so much, @juliasilge! I will make this correction. @sckott should my next step be to transfer the repo to ropenscilabs or to submit to CRAN? I won't do it before the week-end anyway I think. An issue I had was my first name. I wonder which encoding is better for the description file to still be "Maëlle" so I want to check various solutions. When I tried a few days ago to build source and then look at the DESCRIPTION in the .tar.gz my name was Ma?lle or other variations. That said I'm Maëlle in this package so I'll look at this description file. [I sound so narcissistic now...] |
Having a look real quick... |
I think you want |
oooh many thanks!!
An issue I had was my first name. |
did that work ? |
Yes it did! This line + making sure I saved it with UTF-8 encoding in RStudio. Thank you! |
Transfer to |
Ok, I will transfer soon. I need to figure out why I've just broken my build 😁 |
I've now transferred the repo, I just need to change the badges in the readme now (I've changed the links and added the rOpenSci things at the bottom of the readme). I'd like to let this issue open as long as I haven't got the package on CRAN. |
great, thanks!
Will that be soon? We generally close these issues after approval and repo transfer, but if it's soon we can leave this open until then |
Yes that'll be soon but I've changed my mind, I won't change the habits of this repo and I'll ask questions on Slack if I get issues with the vignette. Thanks again to you all!! |
or can ask in your opencage repo - either way is fine |
This package is an interface to the opencage API (free account: 2500 calls/day). It allows forward geocoding (from placename to lat/lon) and reverse geocoding (vice versa). The API has many data sources.
https://github.com/masalmon/opencage
opencage website states "open geospatial data including OpenStreetMap, Yahoo! GeoPlanet, Natural Earth Data, Thematic Mapping, Ordnance Survey OpenSpace, Statistics New Zealand, Zillow, MaxMind, GeoNames, the US Census Bureau and Flickr's shapefiles plus a whole lot more besides."
People that need to geocode.
I know no function for reverse geocoding but for forward geocoding there's the geocode function in ggmap. "Geocodes a location (find latitude and longitude) using either (1) the Data Science Toolkit (http://www.datasciencetoolkit.org/about) or (2) Google Maps." However it has either Google Maps or Data Science Toolkit. opencage actually builds on other geocoders including Data Science Toolkit ("There's Nominatim, Data Science Toolkit and the Two Fishes geocoders." )
devtools
install instructionsdevtools::check()
produce any errors or warnings? If so paste them below.The package does not have a vignette yet but it only has two functions with nearly the same arguments. However I agree that it might be good to show use cases, but since I don't geocode a lot in R, I need a bit of feedback about what applications are for users that really geocode.
The text was updated successfully, but these errors were encountered: