pull: Pull remote files to local system

Description Usage Arguments See Also Examples

View source: R/prp.R

Description

pull makes a local copy of a new or updated remote file(s)

Usage

1
pull(path, remoteName, fileName = "", verbose = FALSE, path2)

Arguments

path

Character string for path to be pulled, or path containing file to be pulled. If path2 is specified, path refers only to the local destination.

remoteName

Character string for remote server in username@place.edu format. See run.remote in the package ssh.utils

fileName

Character string of file within path to be pulled. If "", all files in path are pulled

verbose

logical. print extra output.

path2

remote source path; if blank, path2 is the remote equivalent of path

See Also

push for the opposite process, run to run script remotely, and prp to push run pull. See rbLib-package for overview.

Examples

1
2
3
4
5
6
7
## Not run: 
path <- "./Documents/School&Work/NCEAS_UnderIce/core/scripts/analysis/"
scriptName <- "reset.sim.R"
remoteName <- "ryanb@amphiprion.deenr.rutgers.edu"
(pull(path, remoteName, fileName=""))

## End(Not run)

rBatt/rbLib documentation built on May 26, 2019, 7:45 p.m.