| write_set | R Documentation |
Writes the synthetic tables of a mask_set() result to disk. The
output format mirrors the request: a .xlsx path produces one
workbook with one sheet per table; a folder path produces one .csv
per table. The private recipe bundle is never written by this
function - persist it separately with save_recipe() and protect it
at the same security class as the original data.
write_set(m, path, overwrite = FALSE, allow_high = FALSE)
m |
A |
path |
Output location. A path ending in |
overwrite |
Logical. When |
allow_high |
Logical (default |
In collaborate mode the mask-time audit gates the write: unresolved
HIGH leakage findings refuse the write (nothing is written) until the
flagged columns are re-roled, aliased, or dropped - or the refusal is
explicitly overridden with allow_high = TRUE, which raises a
masque_high_override warning so the exception stays visible.
path, invisibly.
mask_set(), read_set(), save_recipe().
tables <- list(
plots = data.frame(site = c("A", "B"), yield = c(3.1, 4.2)),
sites = data.frame(site = c("A", "B"), rain = c(420, 560))
)
m <- mask_set(tables, seed = 1, quiet = TRUE)
dir <- file.path(tempdir(), "masked_set")
write_set(m, dir)
list.files(dir)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.