Generate Character Representation of DiffSummary Object

# S4 method for class 'DiffSummary'
as.character(x, ...)

Arguments

x

a DiffSummary object

...

not used, for compatibility with generic

Value

the summary as a character vector intended to be cated to terminal

Examples

as.character(
  summary(diffChr(letters, letters[-c(5, 15)], format="raw", pager="off"))
)
#> [1] "\nFound differences in 2 hunks:\n  0 insertions, 2 deletions, 24 matches (lines)\n\nDiff map (line:char scale is 1:1 for single chars, 1:1 for char seqs):\n  ....D.........D...........\n"
#> attr(,"len")
#> [1] 7