Learn R Programming

aisdk (version 1.1.0)

sanitize_r_code: Sanitize R Code

Description

Patches common issues in LLM-generated R code before execution. Currently handles: missing library() calls for %>% and other common operators.

Usage

sanitize_r_code(code)

Value

The sanitized code string.

Arguments

code

The R code string to sanitize.