sinking.Rd
Redirects printed output of an expression to a file using sink().
sink()
sinking(expr, file)
An R expression to evaluate and capture output from.
A character string. File path to save the console output.
None. The console output of expr is written to file.
expr
file
if (FALSE) { # \dontrun{ sinking(summary(cars), "summary.txt") } # }