Learn R Programming

ssh.utils (version 1.0)

file.exists.remote: Checks if a local or remote file exists.

Description

A wrapper around a bash script. Works with local files too if remote="".

Usage

file.exists.remote(file, remote = "")

Arguments

file
File path.
remote
Remote machine specification for ssh, in format such as user@server that does not require interactive password entry. For local execution, pass an empty string "" (default).

Value

TRUE or FALSE indicating whether the file exists.

Examples

Run this code
## Not run: 
# file.exists.remote("~/myfile.csv", remote = "me@myserver")
# # [1] TRUE
# ## End(Not run)

Run the code above in your browser using DataLab