get_command: Returns the command and arguments needed to execute the...

Description Usage Arguments Value Examples

View source: R/scriptexec.R

Description

Returns the command and arguments needed to execute the provided script file on the current platform.

Usage

1
get_command(filename, runner = NULL)

Arguments

filename

The script file to execute

runner

The executable used to invoke the script (by default cmd.exe for windows, sh for other platforms)

Value

A list holding the command and arguments

Examples

1
2
3
command_struct <- get_command('myfile.sh')
command <- command_struct$command
cli_args <- command_struct$args

scriptexec documentation built on May 2, 2019, 1:49 p.m.