Learn R Programming

future.tests (version 0.9.0)

evaluate_expr: Evaluate an R Expression

Description

Evaluate an R Expression

Usage

evaluate_expr(
  expr,
  envir = parent.frame(),
  local = TRUE,
  output = c("stdout+stderr", "stdout", "none"),
  timeout = +Inf
)

Value

Value of test expression and benchmark information.

Arguments

expr

An expression

envir

The environment where tests are run.

local

Should tests be evaluated in a local environment or not.

output

Specifies whether standard output, standard error, or both should be captured or not.

timeout

Maximum time allowed for evaluation before a timeout error is produced.