rWBclimate
rWBclimate copied to clipboard
Invalid links
WBclimate::get_historical_precip("BRA", time_scale="month")
results in
"Error: lexical error: invalid char in json text.
<!doctype html>
(right here) ------^"
checking the function shows
get_climate_data <- function(locator,geo_type,type, cvar, start, end){ base_url <- "[http://climatedataapi.worldbank.org/climateweb/rest/v1/](http://climatedataapi.worldbank.org/climateweb/rest/v1/)"
which leads to an invalid link