View source: R/download_with_scp.R
list_files_scp | R Documentation |
scp
(secure copy).list_files_scp
offers an alternative to the curl
based
functions which can be troublesome to use with the sftp
protocol on
Ubuntu systems. download_with_scp
needs the sshpass
system
programme to be installed.
list_files_scp(
host,
directory_remote,
user,
password,
method = "scp",
quiet_streams = FALSE
)
host |
Host name of remote system. |
directory_remote |
A remote directory to list files from. |
user |
User name for |
password |
Password for the user for |
method |
Either |
quiet_streams |
Should the system streams be suppressed? |
Character vector.
Stuart K. Grange
download_with_scp
, sshpass,
upload_with_scp
## Not run:
# List contents of a directory
list_files_scp(
host = "192.1.1.1",
directory_remote = "/network_storage/r_files/",
user = "username",
password = "password_for_username"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.