Size of an OLE stream
Arguments
- ole
An
ole_fileobject fromole_open(), or the path to a compound file, which is opened and parsed again on every call.- stream
Path to the stream: a character vector of names, such as
c("storage", "stream"), a single string separating them with/, or a list holding one such path, such asole_streams(ole)[1]. A string in a list is not split at/, so a list also reaches streams whose names contain/. Names are matched ignoring the case of the letters A to Z.ole_extract()reads a character vector differently: each element is a separate stream.
Examples
ole <- ole_open(system.file("extdata", "example.cfb", package = "olereader"))
ole_size(ole, "data")
#> [1] 5000
