make_request {osrmr} | R Documentation |
In order to fail gracefully, this function handles errors and warnings if the asked server (online- or localhost) doesn't work properly. In this case the error message is returned and connections are closed using base::closeAllConnections().
make_request(request)
request |
A character |
If the asked server doesn't react within 1 second, a warning is thrown using R.utils::withTimeout(..., timeout = 1)
A list. The dimension of the list depends on the request and wether the server reacted properly or not.