Learn R Programming

teal.code (version 0.7.1)

get_outputs: Get outputs

Description

[Experimental]

eval_code evaluates code silently so plots and prints don't show up in the console or graphic devices. If one wants to use an output outside of the qenv (e.g. use a graph in renderPlot) then use get_outputs.

Usage

get_outputs(object)

Value

list of outputs generated in a `qenv``

Arguments

object

(qenv)

Examples

Run this code
q <- eval_code(
  qenv(),
  quote({
    a <- 1
    print("I'm an output")
    plot(1)
  })
)
get_outputs(q)

Run the code above in your browser using DataLab