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)

Arguments

x

R object to write to the file

file

the input filename as a character string or a connection object open for writting.

formatter.output

a function for formatting the output. Using null will attempt to find the appropriate method given the class of the input x.

Value

invisibly returns the input to file.

Author

Taylor Arnold and Simon Urbanek