Skip to content

Construct a dvs_bytes vector

A thin constructor used by dvs_add(), dvs_status() and dvs_get() to tag byte-size columns so that pillar renders them as human-readable sizes in tibble output. Stored as double to safely represent file sizes up to 2^53 bytes — integer in R is 32 bits and would silently overflow at ~2 GB.

new_dvs_bytes(x)
ArgumentDescription
xatomic numeric / integer / logical vector (incl. NA)

a dvs_bytes object inheriting from numeric