run: Run a remote script remotely

Description Usage Arguments See Also Examples

View source: R/prp.R

Description

run runs an R script remotely

Usage

1
run(scriptName, path, remoteName, verbose = FALSE, debugMode = FALSE)

Arguments

scriptName

Character string indicating the name of the script to be run

path

Character string for path to script. Must end with a "/"

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.

See Also

pull for the pulling in remote files, push to push a local file to the remote server, 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"
(run(scriptName, path, remoteName))

## End(Not run)

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