Title: | Spread the Love for R Packages with Poetry |
---|---|
Description: | Uses large language models to create poems about R packages. Currently contains the roses() function to make "roses are red, ..." style poems and the prompt() function to only assemble the prompt without submitting it to the model. |
Authors: | Romain François [aut, cre] |
Maintainer: | Romain François <[email protected]> |
License: | MIT + file LICENSE |
Version: | 2025.2.14.9000 |
Built: | 2025-03-12 06:15:14 UTC |
Source: | https://github.com/tadascience/valentine |
Make a "roses are red ..." poem about an R package.
roses( pkg, hint = "", emoji = TRUE, chat = chat_openai(model = "gpt-3.5-turbo"), error_call = current_env() ) prompt(pkg, hint = "", emoji = TRUE)
roses( pkg, hint = "", emoji = TRUE, chat = chat_openai(model = "gpt-3.5-turbo"), error_call = current_env() ) prompt(pkg, hint = "", emoji = TRUE)
pkg |
A package |
hint |
extra information to add to the prompt |
emoji |
Should the poem include emojis ? |
chat |
A ellmer::Chat object, e.g. |
error_call |
The execution environment of a currently
running function, e.g. |
A lovely poem for your package crush
prompt("dplyr") ## Not run: # this needs the OPENAI_API_KEY environment variable # to be set. Visit https://openai.com/api/ roses("dplyr") ## End(Not run)
prompt("dplyr") ## Not run: # this needs the OPENAI_API_KEY environment variable # to be set. Visit https://openai.com/api/ roses("dplyr") ## End(Not run)