Learn R Programming

iotools (version 0.3-5)

output.file: Write an R object to a file as a character string

Description

Writes any R object to a file or connection using an output formatter. Useful for pairing with the input.file function.

Usage

output.file(x, file, formatter.output = NULL)

Value

invisibly returns the input to file.

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.

Author

Taylor Arnold and Simon Urbanek