Advertisement
Guest User

Untitled

a guest
Jul 4th, 2015
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. sink("file.txt", append = T,
  2. split = FALSE) # Direct text to "file.txt"
  3.  
  4. print("hello world")
  5. print("hello world again")
  6.  
  7. shell.exec("file.txt") # Open text file in editor
  8. unlink("file.txt") # Closes sink and now prints all to console
  9.  
  10. closeAllConnections()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement