Extends print to work with kflow_meta objects

# S3 method for kflow_meta
print(x, preview = TRUE, pretty = TRUE, ...)

Arguments

x

kflow_meta object. Likely from kf_init_metrics().

preview

Boolean to indicate whether JSON should be printed. Set to FALSE to inspect underlying list structure.

pretty

Boolean to indicate whether to pretty print or not.

...

Other arguments passed on.

Examples

# By default it displays the eventual JSON test_mets <- kf_init_metrics() test_mets
#> { #> "metrics": [] #> }
# Use print() to see in list form print(test_mets, preview = FALSE)
#> $metrics #> list() #>