powered by
Write unaligned bits to a bitstream
bs_write_bit(bs, x)
Bitstream connection returned invisibly
Bitstream
Bistream connection object created with bs_open()
bs_open()
Logical vector of bit values
bs <- bs_open(raw(), 'w') bs_write_bit(bs, c(TRUE, FALSE, TRUE)) bs_align(bs, nbits = 8) bs_flush(bs) output <- bs_close(bs) output
Run the code above in your browser using DataLab