sendToConsole: Send Code to the R Console

Description

Send code to the R console and optionally execute it.

Usage

1
sendToConsole(code, execute = TRUE)

Arguments

code

Character vector containing code to be executed.

execute

TRUE to execute the code immediately.

Note

The sendToConsole function was added in version 0.99.787 of RStudio.

Examples

1
2
3
4
## Not run: 
rstudioapi::sendToConsole(".Platform", execute = TRUE)

## End(Not run)

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.