httr 1.2.0 is now available on CRAN. The httr package makes it easy to talk to web APIs from R. Learn more in the quick start vignette. Install the latest version with:
There are a few small new features:
RETRY() function allows you to retry a request multiple times until it succeeds, if you you are trying to talk to an unreliable service. To avoid hammering the server, it uses exponential backoff with jitter, as described in https://www.awsarchitectureblog.com/2015/03/backoff.html.
DELETE() gains a body parameter.
encode = "raw" parameter to functions that accept bodies. This allows you to do your own encoding.
http_type() returns the content/mime type of a request, sans parameters.
There is one important bug fix:
POSTrequests. This has the side-effect of properly following redirects after
POST, fixing some login issues in rvest.
httr 1.2.1 includes a fix for a small bug that I discovered shortly after releasing 1.2.0.
For the complete list of improvements, please see the release notes.
We are excited to announce real-time collaborative editing on RStudio Cloud. Users can join the same project, edit code, and immediately see each other’s changes.
In this series, we walk through lesser-known tips and tricks to help you work more effectively and efficiently in R Markdown. This third post focuses on features that save you time and trouble.