wd_connect | R Documentation |
Creates and authenticate a request handle to the WebDAV server
wd_connect(url, username, password = NULL)
url |
url of the WebDAV directory |
username |
username |
password |
password - if not given, you will be asked for it |
Notice: it's not recommended to write the password as plain text. Either omit the parameter (then you will be asked to enter a password interactively) or use for example the system credential store via keyring package.
a httr2 request to the WebDAV server location
## Not run:
# establish a connection, you will be asked for a password
r <- wd_connect("https://example.com/remote.php/webdav/","exampleuser")
# establish a connection, use keyring package to retrieve the password
keyring::key_set("mydav", "exampleuser") # call only once
r <- wd_connect("https://example.com/remote.php/webdav/",
"exampleuser"
keyring::key_get("mydav", "exampleuser"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.