Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

with_config

Execute code with configuration set.


Description

Execute code with configuration set.

Usage

with_config(config = config(), expr, override = FALSE)

with_verbose(expr, ...)

Arguments

config

Settings as generated by add_headers(), set_cookies() or authenticate().

expr

code to execute under specified configuration

override

if TRUE, ignore existing settings, if FALSE, combine new config with old.

...

Other arguments passed on to verbose()

See Also

Other ways to set configuration: config(), set_config()

Examples

with_config(verbose(), {
  GET("http://had.co.nz")
  GET("http://google.com")
})

# Or even easier:
with_verbose(GET("http://google.com"))

httr

Tools for Working with URLs and HTTP

v1.4.2
MIT + file LICENSE
Authors
Hadley Wickham [aut, cre], RStudio [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.