Learn R Programming

gooseR (version 0.1.2)

goose_quarto_chunk: Create AI-Powered Quarto Chunk

Description

Generate a Quarto chunk that executes AI queries

Usage

goose_quarto_chunk(
  prompt,
  label = NULL,
  echo = FALSE,
  eval = TRUE,
  cache = TRUE
)

Value

Quarto chunk text

Arguments

prompt

The AI prompt to execute

label

Optional chunk label

echo

Whether to show the prompt in output

eval

Whether to evaluate the chunk

cache

Whether to cache the result

Examples

Run this code
if (FALSE) {
# In a Quarto document
goose_quarto_chunk("Explain linear regression", label = "explain-lm")
}

Run the code above in your browser using DataLab