View source: R/quarto_integration.R
| goose_quarto_chunk | R Documentation |
Generate a Quarto chunk that executes AI queries
goose_quarto_chunk(
prompt,
label = NULL,
echo = FALSE,
eval = TRUE,
cache = TRUE
)
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 |
Quarto chunk text
## Not run:
# In a Quarto document
goose_quarto_chunk("Explain linear regression", label = "explain-lm")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.