get_command {scriptexec} | R Documentation |
Returns the command and arguments needed to execute the provided script file on the current platform.
get_command(filename, runner = NULL)
filename |
The script file to execute |
runner |
The executable used to invoke the script (by default cmd.exe for windows, sh for other platforms) |
A list holding the command and arguments
command_struct <- get_command('myfile.sh')
command <- command_struct$command
cli_args <- command_struct$args