sendToConsole {rstudioapi}R Documentation

Send Code to the R Console

Description

Send code to the R console and optionally execute it.

Usage

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

## Not run: 
rstudioapi::sendToConsole(".Platform", execute = TRUE)

## End(Not run)


[Package rstudioapi version 0.7 Index]