Learn R Programming

scriptexec (version 0.3.1)

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

Description

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

Usage

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

Run this code
# NOT RUN {
command_struct <- get_command('myfile.sh')
command <- command_struct$command
cli_args <- command_struct$args
# }

Run the code above in your browser using DataLab