
Print method for anonymized environment summary
Source:R/anon_data_summary.R
print.anon_data_summary.RdDisplays an anonymized environment summary in a structured, readable format. The output includes overall statistics, data frame structural information, variable details, optional example payloads, and information about other objects (if present).
Usage
# S3 method for class 'anon_data_summary'
print(x, ...)Arguments
- x
An object of class
"anon_data_summary"created byanon_data_summary()- ...
Additional arguments passed to print methods (currently unused)
Details
The print method displays information in the following order:
Environment Data Summary: Overall statistics including total objects, data frame count, other object count, and total memory usage
Data Frames: Structural information for each data frame
Variable Details: Detailed information about variables within data frames
Examples: Optional sample rows or keyed scenarios when configured
Other Objects: Information about non-data frame objects
All displayed content respects the anonymization patterns applied during the creation of the summary object.
Examples
if (FALSE) { # \dontrun{
# Create and print an anonymized summary
summary_result <- anon_data_summary(
list(data = mtcars),
pattern_list = list("CAR" = "Mazda|Merc")
)
print(summary_result)
} # }