Advertisement
Guest User

Untitled

a guest
Jan 28th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. log_file.con <- file(log_file, open="at")
  2. serialize(obj, log_file.con, ascii = TRUE)
  3. close(log_file.con)
  4.  
  5. log_file.con <- file(log_file, open="rt")
  6. results <- list()
  7. repeat{
  8. entry <- NULL
  9. try(entry <- unserialize(log_file.con), silent = TRUE)
  10.  
  11. if (is.null(entry))
  12. break
  13.  
  14. results <- c(results, list(entry))
  15. }
  16. close(log_file.con)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement