rdav | R Documentation |
Provides functions to interchange files with WebDAV servers
download a file or a directory (recursively) from a WebDAV server
upload a file or a directory (recursively) to a WebDAV server
copy, move, delete files or directories on a WebDAV server
list directories on the WebDAV server
Notice: when uploading or downloading files, they are overwritten without any warnings.
Gunther Krauss
Useful links:
## Not run:
# establish a connection, you will be asked for a password
r <- wd_connect("https://example.com/remote.php/webdav/","exampleuser")
# show files / directoriess in main directory
wd_dir(r)
# lists 'subdir', returns a dataframe
wd_dir(r, "subdir", as_df = TRUE)
# create directory 'mydirectory' on the server
wd_mkdir(r,"mydirectory")
# upload the local file testfile.R to the subdirectory 'mydirectory'
wd_upload(r, "testfile.R", "mydirectory/testfile.R")
# download content of 'mydirectory' from the server and
# store it in 'd:/data/fromserver' on your computer
wd_download(r, "mydirectory", "d:/data/fromserver")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.