Learn R Programming

bitstreamio (version 0.1.0)

assert_bs: Test if an object is a bitstream object and fail if it is not

Description

Test if an object is a bitstream object and fail if it is not

Usage

assert_bs(x)

Value

None

Arguments

x

object to test

Examples

Run this code
raw_vec <- as.raw(1:3)
bs  <- bs_open(raw_vec, 'r')
assert_bs(bs)
bs_close(bs)

Run the code above in your browser using DataLab