JReportToFile | R Documentation |
Sends the text output of an arbitrary R expression or function to a text file.
JReportToFile(filename, expr, createDirectory = TRUE)
filename |
Name of the file to write to. If NULL, output destination is unaffected by this function. |
expr |
An expression which outputs the text to be written. |
createDirectory |
If TRUE and |
The result of evaluating plotExpr
is returned invisibly (which
means it is not automatically printed).
sink
, capture.output
for saving text output into a variable.
## Not run:
JReportToFile("test.txt", print("Hello world!"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.