r.exec: Execute the provided R code and return the output

Description Usage Arguments

View source: R/rexec.R

Description

Execute the R code provided as input and return a string containing all of its output. If the code prints output, say with cat, e.g., as in "cat(5);cat(6)", then that output is returned as single collapsed string. If the code just returns a value, e.g., "5", then this value will be converted to a collapsed string and returned.

Usage

1
r.exec(code)

Arguments

code

the R code


thomasWeise/bookbuildeR documentation built on Sept. 5, 2021, 6:31 p.m.