Read a vector consisting of atomic elements from its on-disk representation. This is usually not directly called by users, but is instead called by dispatch in readObject.

readAtomicVector(path, metadata, ...)

Arguments

path

Path to a directory created with any of the vector methods for saveObject.

metadata

Named list containing metadata for the object, see readObjectFile for details.

...

Further arguments, ignored.

Value

The vector described by info.

See also

"saveObject,integer-method", for one of the staging methods.

Author

Aaron Lun

Examples

tmp <- tempfile()
saveObject(setNames(runif(26), letters), tmp)
readObject(tmp)
#>          a          b          c          d          e          f          g 
#> 0.87460066 0.17494063 0.03424133 0.32038573 0.40232824 0.19566983 0.40353812 
#>          h          i          j          k          l          m          n 
#> 0.06366146 0.38870131 0.97554784 0.28989230 0.67838043 0.73531960 0.19595673 
#>          o          p          q          r          s          t          u 
#> 0.98053967 0.74152153 0.05144628 0.53021246 0.69582388 0.68855600 0.03123033 
#>          v          w          x          y          z 
#> 0.22556253 0.30083081 0.63646561 0.47902455 0.43217126