droplet: A droplet, or something that can be coerced to a droplet by as.droplet.
...: Shell commands to run. Multiple commands are combined with && so that execution will halt after the first failure.
user: User name. Defaults to "root".
keyfile: Optional private key file.
ssh_passwd: Optional passphrase or callback function for authentication. Refer to the ssh::ssh_connect documentation for more details.
verbose: If TRUE, will print command before executing it.
local, remote: Local and remote paths.
overwrite: If TRUE, then overwrite destination files if they already exist.
Returns
On success, the droplet (invisibly). On failure, throws an error.
Details
Uploads and downloads are recursive, so if you specify a directory, everything inside the directory will also be downloaded.
With the chang to package ssh, we create ssh session objects (C pointers) internally, and cache them, then look them up in the cache based on combination of user and IP address. That is, there's separate sessions for each user for the same IP address.
ssh sessions are cleaned up at the end of your R session.