Package 'valentine'

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-06-13 02:29:24 UTC
Source: https://github.com/tadascience/valentine

Help Index


Make a roses are red poem

Description

Make a "roses are red ..." poem about an R package.

Usage

roses(pkg, hint = "", emoji = TRUE, ...)

prompt(pkg, hint = "", emoji = TRUE)

Arguments

pkg

A package

hint

extra information to add to the prompt

emoji

Should the poem include emojis ?

...

Passed to openai::create_chat_completion()

Value

A poem generated by ChatGPT via openai::create_chat_completion()

Examples

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)