prp: Push, Run, then Pull

Description Usage Arguments See Also Examples

View source: R/prp.R

Description

prp pushes local updates to remote, runs script remotely, then pulls remote updates to local

Usage

1
prp(path, scriptName, remoteName, verbose = FALSE, debugMode = FALSE, path2)

Arguments

path

Character string for path to be pulled, or path containing file to be pulled

scriptName

Character string of the script to be run

remoteName

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

verbose

logical. print extra output.

debugMode

logical. whether the run should load a file called '.RData' present in the directory, and if it should save a file (image) by the same name on exit.

path2

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

See Also

pull and push to sync files, and run to run script remotely. 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"
prp(path, scriptName, remoteName, verbose=TRUE)

## End(Not run)

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