read_bin | R Documentation |
This is a wrapper function of readBin()
with default arguments
what = "raw"
and n =
file.size
(file)
, which means it
will read the full content of a binary file as a raw vector by default.
read_bin(file, what = "raw", n = file.info(file)$size, ...)
file , what , n , ... |
Arguments to be passed to |
A vector returned from readBin()
.
f = tempfile()
cat("abc", file = f)
xfun::read_bin(f)
unlink(f)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.