View source: R/download_ftp_file.R
upload_to_ftp | R Documentation |
upload_to_ftp
will create directories if necessary.
upload_to_ftp(file, url, credentials = "", basename = FALSE, verbose = FALSE)
file |
File to upload. |
url |
The url of remote directory. |
credentials |
Credentials for a FTP or SFTP server. Do not use
|
basename |
Should only the basename be used for transferring the files? This is useful when files to be uploaded are outside of the working directory, but the directory structure will be lost on the remote server. |
verbose |
Should the function give messages? |
Stuart K. Grange
download_ftp_file
, list_files_ftp
## Not run:
# Get file list
file_list <- list.files(recursive = TRUE, full.names = TRUE)
# Exclude some files
file_list <- grep("cache|.Rmd$", file_list, value = TRUE, invert = TRUE)
# Upload files to server
upload_to_ftp(file_list, url, "user:pass")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.