r.source: Execute the provided R file and return the output

Description Usage Arguments

View source: R/rsource.R

Description

Execute the R file 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. This is similar to what r.exec is doing, but it obtains its input from a file.

Usage

1
r.source(path, basePath = NULL)

Arguments

path

the path

basePath

the base path


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