Learn R Programming

easyr (version 0.5-11)

crun: Concatenate and run.

Description

Concatenate arguments and run them as a command. Shorthand for eval( parse( text = paste0( ... ) ) ). Consider also using base::get() which can be used to get an object from a string, but only if it already exists. Author: Bryce Chamberlain.

Usage

crun(...)

Arguments

...

Character(s) to be concatenated and run as a command.

Examples

Run this code
crun( 'print(', '"hello world!"', ')')
crun('T', 'RUE')

Run the code above in your browser using DataLab