object: Object for which a summary method is defined
file: File name
append: Optional logical indicating whether console output should be appended to an already existing file. See argument append in base::sink.
...: Further arguments passed to summary.
See Also
base::sink, base::summary
Examples
## Not run:############################################################################## EXAMPLE 1: summary_sink example for lm function##############################################################################--- simulate some dataset.seed(997)N <-200x <- stats::rnorm( N )y <-.4* x + stats::rnorm(N, sd=.5)#--- fit a linear model and sink summary into a filemod1 <- stats::lm( y ~ x )CDM::summary_sink(mod1, file="my_model")#--- fit a second model and append it to filemod2 <- stats::lm( y ~ x + I(x^2))CDM::summary_sink(mod2, file="my_model", append=TRUE)## End(Not run)