Learn R Programming

shipunov (version 1.0)

Rresults: Rresults shell script

Description

Rresults shell script

Arguments

Details

'Rresults' is a bash shell script which allows to gather all R input and R textual output in one text file, and (unnamed) R graphical output in another (PDF) file. If graphical output is names, it will be saved in its own file(s).

Very good for debugging and other non-interactive working with R scripts as everything is one place.

Examples

Run this code
# NOT RUN {
cat("\"Hello, world!\"", file="hello.r")
# }
# NOT RUN {
## works only if the script is properly installed
system("Rresults hello.r")
## interactive command
file.show("hello_rresults.txt")
# }

Run the code above in your browser using DataLab