Rresults: Rresults shell script

View source: R/aaa.r

RresultsR Documentation

Rresults shell script

Description

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)

shipunov documentation built on Feb. 16, 2023, 9:05 p.m.

Related to Rresults in shipunov...