get_command {scriptexec} | R Documentation |
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
command_struct <- get_command('myfile.sh')
command <- command_struct$command
cli_args <- command_struct$args
[Package scriptexec version 0.3.1 Index]