Writes any R object to a file or connection using an output
formatter. Useful for pairing with the input.file
function.
output.file(x, file, formatter.output = NULL)
invisibly returns the input to file
.
R object to write to the file
the input filename as a character string or a connection object open for writting.
a function for formatting the output. Using null
will attempt to find the appropriate method given the class of the input
x
.
Taylor Arnold and Simon Urbanek