rstudioapi (version 0.9.0)

sendToConsole: 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.

Examples

Run this code
# NOT RUN {
rstudioapi::sendToConsole(".Platform", execute = TRUE)
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace