Displaying 1 result from an estimated 1 matches for "notacommand".
2013 Oct 07
0
[Windows] Behaviour of shell on error
...error, if FALSE a warning and if NA, no R message.
Value
If intern = TRUE, a character vector giving the output of the command, one
line per character string, or an error message if the command could not be
run.
"
Thank you.
Bests,
Renaud
## Example ###
# no error as expected
shell('notacommand')
shell('notacommand', intern=TRUE)
# error as expected
shell('notacommand', mustWork = TRUE)
# I am expecting to get an error here as well, but none is thrown
shell('notacommand', intern = TRUE, mustWork = TRUE)
sessionInfo()
### Output ###
> # no error as expecte...