Description Usage Arguments Value References See Also Examples
View source: R/curlconverter-main.r
Takes in a "Copy as cURL" command line and returns a list
of
components that can be used to build httr
requests or passed to
make_req()
to automagically make an httr
VERB()
function.
1 | straighten(curls = read_clip(), quiet = FALSE)
|
curls |
a character vector of one cURL command lines. It will read from the clipboard (i.e. if you did a "Copy as cURL" from browser developer tools). |
quiet |
if |
parsed data (i.e. to be used in 'httr' requests)
Evaluating Network Performance, Network Monitor
1 2 3 4 5 6 7 8 9 | ## Not run:
library(httr)
my_ip <- straighten("curl 'https://httpbin.org/ip'") %>% make_req()
# external test which captures live data
content(my_ip[[1]](), as="parsed")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.