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

Description Usage Arguments Value Examples

View source: R/file.exists.R

Description

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

Usage

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

Arguments

file

File path.

remote

Remote machine specification for ssh, in format such as [email protected] 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

1
2
3
4
5
## Not run: 
file.exists.remote("~/myfile.csv", remote = "[email protected]")
# [1] TRUE

## End(Not run)

ssh.utils documentation built on May 29, 2017, 9:29 p.m.