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 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

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

## End(Not run)

collectivemedia/ssh.utils documentation built on May 13, 2019, 9:54 p.m.