create_system_call_args: Returns the system call arguments.

Description Usage Arguments Value Examples

View source: R/scriptexec.R

Description

Returns the system call arguments.

Usage

1
create_system_call_args(command, cli_args, wait, env, is_windows_os)

Arguments

command

The command to invoke

cli_args

Possible list of command line arguments

wait

A TRUE/FALSE parameter, indicating whether the function should wait for the command to finish, or run it asynchronously

env

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

is_windows_os

True if windows based OS, false for unix based OS

Value

The system call arguments

Examples

1
2
filename <- './myfile.sh'
arg_list <- create_system_call_args('sh', c(filename), TRUE, character(), FALSE)

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