View source: R/file_transfer.R
remote_directory_exists | R Documentation |
see https://stackoverflow.com/questions/15927911/how-to-check-if-dir-exists-over-ssh-and-return-results-to-host-machine
remote_directory_exists(uri, username = "foo", password = "bar",
use = c("cp", "scp", "curl")[2], verbose = FALSE)
uri |
character |
username |
the username (required) |
password |
the password |
use |
character one of 'cp', 'scp' or 'curl' |
verbose |
logical, if TRUE then echo the command string |
integer with 0 for success
Other file_transfer: cp_download
,
duck_download
, duck_upload
,
has_duck
, has_rsync
,
has_scp
,
make_remote_directory
,
rsync_download
, rsync_upload
,
scp_download
, scp_upload
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.