curl_convert: Shortcut to convert a single cURL command-line into a single...

Description Usage Arguments Value Note

View source: R/make-req.r

Description

Shortcut to convert a single cURL command-line into a single R function

Usage

1
curl_convert(curls = read_clip(), quiet = FALSE)

Arguments

curls

a character vector of one or more cURL command lines. It will read from the clipboard (i.e. if you did a "Copy as cURL" from browser developer tools).

quiet

if FALSE, a message with the original cURL command line will be output. (Default: FALSE)

Value

an R function and a version of the function on the clipboard

Note

The cURL command-line should be on the clipboard.


hrbrmstr/curlconverter documentation built on June 22, 2021, 11:58 a.m.