Guest User

Untitled

a guest
Jul 21st, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. X <- system("ping google.com",intern=TRUE)
  2.  
  3. X <- system2("ping", "google.com")
  4.  
  5. > out <- tryCatch(ex <- system2("ls","xx", stdout=TRUE, stderr=TRUE), warning=function(w){w})
  6. > out
  7. <simpleWarning: running command ''ls' xx 2>&1' had status 2>
  8. > ex
  9. [1] "ls: cannot access xx: No such file or directory"
  10. > out <- tryCatch(ex <- system2("ls","-l", stdout=TRUE, stderr=TRUE), warning=function(w){w})
  11. > out
  12. [listing snipped]
  13. > ex
  14. [listing snipped]
Add Comment
Please, Sign In to add comment