This function prints an object and captures the output as a string.
Examples
df <- data.frame(a = 1:3, b = letters[1:3])
printCapture(df)
#> [1] " a b\n1 1 a\n2 2 b\n3 3 c"
# Returns a string representation of the data frame
This function prints an object and captures the output as a string.
df <- data.frame(a = 1:3, b = letters[1:3])
printCapture(df)
#> [1] " a b\n1 1 a\n2 2 b\n3 3 c"
# Returns a string representation of the data frame