scriptexec (version 0.3.1)

create_system_call_args: Returns the system call arguments.

Description

Returns the system call arguments.

Usage

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

Run this code
# NOT RUN {
filename <- './myfile.sh'
arg_list <- create_system_call_args('sh', c(filename), TRUE, character(), FALSE)
# }

Run the code above in your browser using DataCamp Workspace