Set the version attribute on a table.
Usage
set_tbl_version_attr(tbl, v)
Arguments
- tbl
(tibble())
Table with a version attribute.
- v
(character(1))
Version string to set.
Examples
d <- tibble::tibble(a = 1:3, b = letters[1:3])
v <- "v1.2.3"
d <- set_tbl_version_attr(d, v)
(a <- attr(d, "file_version"))
#> [1] "v1.2.3"