sendToConsole: Send Code to the R Console

Description Usage Arguments Note Examples

View source: R/stubs.R

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)

rstudioapi documentation built on Sept. 8, 2017, 1:04 a.m.