-
Notifications
You must be signed in to change notification settings - Fork 2
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
Test elev.R #17
Test elev.R #17
Conversation
Programming best practice is to avoid using bare numbers, and instead to use variables – that way it is clear where values come from and their relationship to the underlying objects. Where values are changed, it can be easy to miss a hard-coded number (as 1728 here), or to calculate its correct value by hand.
Masks write to console
Handles progress bars
I am not sure why we are receiving an error when unzipping srtm files (see the testthat results for elev). |
now uncalled
Inreased robustness to file permission errors
Names are names of temporary files created by rast (I think)
Closed with unmerged commits. |
Sorry – must have misread a notification – it looked like GitHub had told me it was merged. Glad you could restore! |
No dramas! I'm totally digging how these processes work. Thanks a bunch for showing me the ropes! Honestly, I hadn't even used these features in my previous package, and now I've got a bunch of changes in mind based on what I've learned here. |
Add tests for
elev(e_source = "geodata")
.Modifications to
elev.R
:location
usingas(, "sf")
elevation_3s()
Next, I'll try using
e_source = "mapzen"
, which I can't get to work at the moment. It looks likeelevatr::get_elev_raster()
relies onrgdal
, which is being deprecated as part of thesf
update.[edit] - I see that you are already aware of this issue... I'll incorporate a dependency on the beta version of
elevatr
.