Initializing help system before first use

Rprint

Rprint


Purpose
Evaluate R statements and print the result.
Synopsis
procedure Rprint(cmd:string)
Argument
cmd 
Statements to evaluate and print
Example
The following example prints the R version number and summary statistics of the cars dataset:
 Rprint("R.version.string")
 Rprint('library(datasets); summary(cars)')
Further information
It is possible to evaluate multiple statements separating them with semicolons. The return value of the last statement is printed using R's own print function, thus with R style and formatting.
Related topics