Title: | Spread the Love for R Packages with Poetry |
---|---|
Description: | Uses 'ChatGPT' <https://openai.com/> 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 'ChatGPT'. |
Authors: | Romain François [aut, cre] |
Maintainer: | Romain François <[email protected]> |
License: | MIT + file LICENSE |
Version: | 2024.2.14 |
Built: | 2024-11-10 05:45:41 UTC |
Source: | https://github.com/tadascience/valentine |
Make a "roses are red ..." poem about an R package.
roses(pkg, hint = "", emoji = TRUE, ...) prompt(pkg, hint = "", emoji = TRUE)
roses(pkg, hint = "", emoji = TRUE, ...) prompt(pkg, hint = "", emoji = TRUE)
pkg |
A package |
hint |
extra information to add to the prompt |
emoji |
Should the poem include emojis ? |
... |
Passed to |
A poem generated by ChatGPT via openai::create_chat_completion()
prompt("dplyr") ## Not run: # this needs the OPENAI_API_KEY environment variable # to be set. See https://irudnyts.github.io/openai/ roses("dplyr") ## End(Not run)
prompt("dplyr") ## Not run: # this needs the OPENAI_API_KEY environment variable # to be set. See https://irudnyts.github.io/openai/ roses("dplyr") ## End(Not run)