modify_script: Modifies the provided script text and ensures the script...

Description Usage Arguments Value Examples

View source: R/scriptexec.R

Description

Modifies the provided script text and ensures the script content is executed in the correct location.

Usage

1
2
modify_script(script, args = c(), env = character(),
  print_commands = FALSE, is_windows_os = FALSE)

Arguments

script

The script text

args

Optional script command line arguments

env

Optional character vector of name=value strings to set environment variables

print_commands

True if to print each command before invocation (not available for windows)

is_windows_os

True if windows based OS, false for unix based OS

Value

The modified script text

Examples

1
script <- modify_script(script = 'echo test', args = c('first', 'second'), env = c('MYENV=MYENV'))

sagiegurari/scriptexec documentation built on Oct. 5, 2020, 6:42 p.m.