RCurl is an R package that provides an R-friendly wrapper for the libcurl C library.
RCurl is an R package that provides a wrapper for the libcurl C library libcurl (not the cURL command-line tool, curl). RCurl greatly simplifies the process of interfacing R programs with web services and provides simple functions to perform common HTTP calls such as POST and GET. RCurl is cross-platform and installs necessary dependencies when it is added as an R package.
The core workhorse function in RCurl is curlPerform
, which maps curl_easy_opt options almost verbatim. See listCurlOptions()
for a list of arguments representing those options that can be passed to curlPerform
(either directly or via other RCurl functions).
Users may also be interested in the httr package, which provides a further simplified wrapper around RCurl for common requests.