## ----include = FALSE---------------------------------------------------------- knitr::opts_chunk$set( collapse = TRUE, comment = "#>", out.width = "50%", fig.width = 5, fig.height = 4 ) ## ----compress----------------------------------------------------------------- library(blosc) data_input <- as.raw(c(1, 2, 3, 4, 1, 2, 3, 4)) blosc_compress(data_input, typesize = 2) ## ----compress-type------------------------------------------------------------ ## The line below won't work as the default `typesize` (4) does ## not match with the dtype size (2) ## blosc_compress(iris$Petal.Length, dtype = "