Learn R Programming

aisdk (version 1.1.0)

extract_r_code: Extract R Code

Description

Extracts R code from markdown code blocks in the LLM response.

Usage

extract_r_code(text)

Value

A character string containing all extracted R code.

Arguments

text

The LLM response text.