system_w_init: system_w_init

Description Usage Arguments Value

Description

Run a system command with an optional intialization script (e.g. a .bashrc sourced first).

Usage

1
2
system_w_init(cmd, dir, init = character(), args = NULL, env = NULL, ...,
  param = SwitchrParam())

Arguments

cmd

The text of the command. Must be length 1.

dir

The directory that the command should be executed in. The working directory will be temporarily changed to this dir, but will be changed back upon exit of system_w_init.

init

(optional) a character value indicating the location of an initialization shell script.

args

character. Arguments to be passed to the command

env

character. Environmental variables to be set when running the command

param

A SwitchrParam object. The shell initialization script associated with this object is used when init is not specified (length 0).

...

additional parameters passed directly to system.

Value

Depends, see system for details.



Search within the switchr package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.