make_req: Turn parsed cURL command lines into httr request functions
Description
Takes the output of straighten() and turns the parsed cURL command lines
into working httrVERB() functions, optionally cat'ing the text of each function
to the console and/or replacing the system clipboard with the source code for the function.
logical. If TRUE, the request function will be generated
from the "URL parts" that are created as a result of the call to
straighten. This is useful if you want to modify the
URL parts before calling make_req. Default: FALSE.
quiet
if FALSE, will cause make_req() to write complete function
source code to the console.
add_clip
if TRUE, will overwrite the system clipboard with the
character string contents of the last newly made `httr::VERB` function (i.e.
this is intended to be used in a workflow where only one cURL command line
is being processed). Defaults to TRUE if length(x) is 1