qs_deserialize: qs_deserialize

View source: R/RcppExports.R

qs_deserializeR Documentation

qs_deserialize

Description

Deserializes a raw vector to an object using the qs2 format.

Usage

qs_deserialize(input,
         validate_checksum = qopt("validate_checksum"),
         nthreads = qopt("nthreads"))

Arguments

input

The raw vector to deserialize.

validate_checksum

Whether to validate the stored checksum in the file (the initial value is FALSE).

nthreads

The number of threads to use when reading data (the initial value is 1L).

Value

The deserialized object.

Examples

x <- data.frame(int = sample(1e3, replace=TRUE),
         num = rnorm(1e3),
         char = sample(state.name, 1e3, replace=TRUE),
         stringsAsFactors = FALSE)
xserialized <- qs_serialize(x)
x2 <- qs_deserialize(xserialized)
identical(x, x2) # returns TRUE

qs2 documentation built on April 4, 2025, 3:28 a.m.