write_blocks() writes a named list of block values to path with
qs2::qs_save(). It is the only function of writeit that writes a
blocks file.
Details
write_blocks() calls qs2::qs_save(values, path) with the defaults of
qs2. The file keeps the attributes of values, so read_blocks() reads
back an object identical to values.
See also
Other blocks:
block(),
check_blocks(),
house_formatters(),
make_blocks(),
read_blocks(),
txt()
Examples
path <- tempfile(fileext = ".qs2")
write_blocks(list(estimates = data.frame(term = "x", estimate = 1.2)), path)
read_blocks(path)
#> $estimates
#> term estimate
#> 1 x 1.2
#>
unlink(path)