safe_eval: Safe Eval with Timeout

View source: R/auto_fix.R

safe_evalR Documentation

Safe Eval with Timeout

Description

Execute R code with a timeout to prevent infinite loops.

Usage

safe_eval(expr, timeout_seconds = 30, envir = parent.frame())

Arguments

expr

Expression to evaluate.

timeout_seconds

Maximum execution time in seconds.

envir

Environment for evaluation.

Value

The result or an error.


aisdk documentation built on May 29, 2026, 9:07 a.m.