blind_file() returns a blind_summary and blind_data() hangs one on its
result as the blind_summary attribute. It describes the blinded data only,
never a real value, so it is safe to paste into a chat along with the blinded
file, and it tells an AI what each column is before it writes a line of code.
Arguments
- x
A
blind_summary, fromblind_file()or from theblind_summaryattribute of ablind_data()result.- ...
Ignored.
Value
format() returns a character vector, one element per line.
print() prints those lines and returns x invisibly.
Details
Printed, it is the output file if there was one, then one line per column
giving the name, the class and what was done, then the row count and the
result of the leak check, which names any column keep_real kept.
format() returns those same lines as a character vector, for writing them
somewhere instead of printing them.
Read it before sharing the file. It is the list of decisions the package made, and a column blinded as a category when it is really an identifier, or as free text when it is really a code, is the case to catch.
Examples
fake <- blind_data(mtcars[1:3], seed = 1)
info <- attr(fake, "blind_summary")
info
#> mpg numeric numeric, synthetic values
#> cyl numeric discrete numbers, same values
#> disp numeric numeric, synthetic values
#> Rows: 32
#> Leak check: passed
#> Exact numeric or date coincidences: 9 (expected with rounded values and shifted date ranges)
format(info)
#> [1] " mpg numeric numeric, synthetic values"
#> [2] " cyl numeric discrete numbers, same values"
#> [3] " disp numeric numeric, synthetic values"
#> [4] "Rows: 32"
#> [5] "Leak check: passed"
#> [6] "Exact numeric or date coincidences: 9 (expected with rounded values and shifted date ranges)"