file_exists_remote: Checks if a local or remote file exists.

Description Usage Arguments Value Examples

View source: R/ssh.R

Description

Checks if a local or remote file exists.

Usage

1
file_exists_remote(file, remote = FALSE, verbose = FALSE)

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 FALSE (default). For execution on the default qsub config remote, use TRUE.

verbose

If TRUE prints the command.

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)

rcannood/qsub documentation built on Sept. 26, 2021, 8:55 a.m.