flob | R Documentation |
Converts a file into a flob. Flobs are useful for saving files in databases.
flob(path, name = "")
path |
A string of the path to the file. |
name |
A string of the name (without the extension) for the flob. If "" (the default) then the original file name is used. |
A flob is a file that was read into binary in integer-mode as little endian, saved as the single element of a named list (where the name is the extension of the original file) and then serialized before being coerced into a blob.
A named flob of the file.
flobr()
path <- system.file("extdata", "flobr.pdf", package = "flobr") flob <- flob(path) flob
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.