powered by
Returns the command and arguments needed to execute the provided script file on the current platform.
get_command(filename, runner = NULL)
The script file to execute
The executable used to invoke the script (by default cmd.exe for windows, sh for other platforms)
A list holding the command and arguments
# 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