Rresults | R Documentation |
Rresults shell script
'Rresults' is a bash shell script which allows to gather all R input and R textual output into one text file, and (unnamed) R graphical output into another (PDF) file (only if the 'pdftk' utility is installed). If graphical output has name(s), it will be saved in its own file(s).
Very useful for the debugging and other non-interactive activities with R scripts as everything is in one place.
The script has one option "-d" which adds the timestamp to the file name of text results. This option also switches R to add sessionInfo() to the end of output.
Alexey Shipunov
## Not run: ## works only if the script is properly installed cat("\"Hello, world!\"\n", "plot(1:20)\n", file="hello.r") system("Rresults hello.r") system("Rresults -d hello.r") ## interactive command file.show("hello_rresults.txt") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.