Skip to content
A simple S3 class for representing BLOBs
Branch: master
Clone or download
Latest commit c117b99 Feb 28, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
R
man Oops Feb 27, 2019
revdep add drake-based revdepcheck from RSQLite Mar 24, 2018
tests
.Rbuildignore
.covrignore
.gitignore
.travis.yml Use auto-deployment Feb 9, 2019
API
DESCRIPTION
NAMESPACE
NEWS.md
README.Rmd
README.md
_pkgdown.yml
blob.Rproj Initial commit Oct 27, 2016
codecov.yml
cran-comments.md use_tidy_ci() Jan 5, 2019

README.md

Travis-CI Build Status CRAN_Status_Badge Coverage Status

blob

Overview

The goal of blob is to provide a simple S3 class to represent a vector of binary objects, aka blobs. The blob class is a lightweight wrapper around a list of raw vectors, suitable for inclusion in a data frame.

In most cases you will not need to use this package explicitly: it will be used transparently by packages that need to load BLOB columns from databases or binary file formats.

Installation

You can install blob from github with:

# install.packages("devtools")
devtools::install_github("tidyverse/blob")

Example

To create a blob, use blob(), new_blob() or as_blob():

x1 <- charToRaw("Good morning")
x2 <- as.raw(c(0x48, 0x65, 0x6c, 0x6c, 0x6f))

new_blob(list(x1, x2))
#> <blob[2]>
#> [1] blob[12 B] blob[ 5 B]
blob(x1, x2)
#> <blob[2]>
#> [1] blob[12 B] blob[ 5 B]

as_blob(c("Good morning", "Good evening"))
#> <blob[2]>
#> [1] blob[12 B] blob[12 B]
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.