powered by
When the external pointer is broken, attempt to recreate a valid object, if the file still exists.
restore(object)# S4 method for marray restore(object)# S4 method for mmatrix restore(object)# S4 method for mvector restore(object)
# S4 method for marray restore(object)
# S4 method for mmatrix restore(object)
# S4 method for mvector restore(object)
a memory-mapped object
a memory mapped matrix
a <- matrix(1:24, 4, 6) A <- as.mmatrix(a, "float") rdsfile <- tempfile(fileext = ".rds") saveRDS(A, rdsfile) A <- readRDS(rdsfile) A A <- restore(A) A
Run the code above in your browser using DataLab