Generates a text summary of R objects to be used as context for the LLM.
Usage
get_r_context(vars, envir = parent.frame())Examples
if (FALSE) { # \dontrun{
df <- data.frame(x = 1:10, y = rnorm(10))
context <- get_r_context("df")
cat(context)
} # }
Generates a text summary of R objects to be used as context for the LLM.
get_r_context(vars, envir = parent.frame())if (FALSE) { # \dontrun{
df <- data.frame(x = 1:10, y = rnorm(10))
context <- get_r_context("df")
cat(context)
} # }