ropensci / slopes

Package to calculate slopes of roads, rivers and trajectories
https://docs.ropensci.org/slopes/
GNU General Public License v3.0
70 stars 6 forks source link

elevation_add() error #50

Open temospena opened 3 months ago

temospena commented 3 months ago

I'm having some trouble making the elevation_add() function working, even with an mapbox API active. The example in documentation is also not working.

library(sf)
#> Linking to GEOS 3.12.1, GDAL 3.8.4, PROJ 9.3.1; sf_use_s2() is TRUE
library(slopes)

# Get elevation data (requires internet connection and API key):
r3d_get = elevation_add(cyclestreets_route)
#> Loading required namespace: ceramic
#> Error in valid_numeric_matrix(x): !anyNA(x) is not TRUE
plot_slope(r3d_get)
#> Error in eval(expr, envir, enclos): object 'r3d_get' not found

Created on 2024-08-06 with reprex v2.1.0

Robinlovelace commented 3 months ago

Not sure what's causing this... Updates to the package needed I think.