saveRDSCustom <- function(obj,fileName){
tryCatch({
fileConn<-file(fileName,blocking = TRUE)
saveRDS(obj,fileConn)
close(fileConn)
return(TRUE)
}
,error=function(e){
cat(e)
return(FALSE) }
)
}
Created
February 20, 2017 08:32
-
-
Save neerajnagi/894ffea79195439ea63eedc9abbdfe03 to your computer and use it in GitHub Desktop.
safe saveRDS
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment