View source: R/download_ftp_file.R
download_ftp_file | R Documentation |
FTP
or SFTP
server.Function to download files from an FTP
or SFTP
server.
download_ftp_file(
file_remote,
file_local,
credentials = "",
curl = FALSE,
sleep = NA,
verbose = FALSE
)
file_remote |
|
file_local |
File names for the local version of |
credentials |
Credentials for a |
curl |
Should RCurl be used to download the files or base R's
|
sleep |
Number of seconds to wait between querying server. |
verbose |
Should the function give messages about download progress? |
Stuart K. Grange
list_files_ftp
, upload_to_ftp
## Not run:
# Download a file from a server which does not need credentials
url <- "ftp://ftp.ncdc.noaa.gov/pub/data/noaa/isd-history.csv"
download_ftp_file(url, "~/Desktop/noaa_data.csv", verbose = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.