knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
flobr
is an R package to convert files to and from flobs.
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 name of the original file including its extension) and then serialized before being coerced into a blob.
Flobs are useful for writing and reading files to and from databases.
library(flobr) path <- system.file("extdata", "flobr.pdf", package = "flobr") flob <- flob(path) str(flob) flob_name(flob) flob_ext(flob) unflob(flob, tempdir()) all.equal(flob, flob(file.path(tempdir(), "flobr.pdf")), check.attributes = FALSE)
To install the most recent version from GitHub
# install.packages("remotes") remotes::install_github("poissonconsulting/flobr")
or from r-universe.
install.packages("flobr", repos = c("https://poissonconsulting.r-universe.dev", "https://cloud.r-project.org"))
The blob package.
The hex was designed by The Forest.
Please report any issues.
Pull requests are always welcome.
Please note that the flobr project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.