| authenticate | R Documentation | 
It's not obvious how to turn authentication off after using it, so I recommend using custom handles with authentication.
authenticate(user, password, type = "basic")
| user | user name | 
| password | password | 
| type | type of HTTP authentication. Should be one of the following types supported by Curl: basic, digest, digest_ie, gssnegotiate, ntlm, any. It defaults to "basic", the most common type. | 
Other config: 
add_headers(),
config(),
set_cookies(),
timeout(),
use_proxy(),
user_agent(),
verbose()
## Not run: 
GET("http://httpbin.org/basic-auth/user/passwd")
GET(
  "http://httpbin.org/basic-auth/user/passwd",
  authenticate("user", "passwd")
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.