Rresults function

Rresults shell script

Rresults shell script

Details

'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.

Author(s)

Alexey Shipunov

Examples

## 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)
  • Maintainer: ORPHANED
  • License: GPL (>= 2)
  • Last published: 2023-02-05

Useful links