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().
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.