Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- X <- system("ping google.com",intern=TRUE)
- X <- system2("ping", "google.com")
- > out <- tryCatch(ex <- system2("ls","xx", stdout=TRUE, stderr=TRUE), warning=function(w){w})
- > out
- <simpleWarning: running command ''ls' xx 2>&1' had status 2>
- > ex
- [1] "ls: cannot access xx: No such file or directory"
- > out <- tryCatch(ex <- system2("ls","-l", stdout=TRUE, stderr=TRUE), warning=function(w){w})
- > out
- [listing snipped]
- > ex
- [listing snipped]
Add Comment
Please, Sign In to add comment