Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. ```
  2. saveRDSCustom <- function(obj,fileName){
  3. tryCatch({
  4. fileConn<-file(fileName,blocking = TRUE)
  5. saveRDS(obj,fileConn)
  6. close(fileConn)
  7. return(TRUE)
  8. }
  9. ,error=function(e){
  10. cat(e)
  11. return(FALSE) }
  12. )
  13. }
  14. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement