Skip to content

Commit

Permalink
Suppress warnings, close #37
Browse files Browse the repository at this point in the history
  • Loading branch information
Robinlovelace committed Aug 18, 2021
1 parent 35adc64 commit 7ec8138
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/slope_get.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ elevation_get = function(routes, file = NULL, ...) {
if(requireNamespace("ceramic")) {
mid_ext = sf_mid_ext_lonlat(routes)
bw = max(c(mid_ext$width, mid_ext$height)) / 1 # buffer width
e = ceramic::cc_elevation(loc = mid_ext$midpoint, buffer = bw, ...)
suppressWarnings({
e = ceramic::cc_elevation(loc = mid_ext$midpoint, buffer = bw, ...)
})
} else {
message("Install the package ceramic")
}
Expand Down

0 comments on commit 7ec8138

Please sign in to comment.