The goal of valentine is to spread the love π about your favourite R package via βroses are red β¦β poems πΉ generated by AI via the ellmer π¦.
You can install the development version:
::pak("tadascience/valentine") pak
valentine::roses()
uses a Chat object
to communicate with the LLM of your choice. The default value for the
chat
argument uses the βgpt-3.5-turboβ model from OpenAI
via the ellmer::chat_openai()
which is usually good enough for such a simple task.
Please refer to ellmer documentation for information on setting up api keys, etc β¦
::roses("dplyr")
valentine#> Roses are red,
#> dplyr is my bae πΉ
#> With pipes and verbs,
#> My data never goes astray π
::roses("lubridate", hint = "make it kinky")
valentine#> Roses are red, violets are blue,
#> But lubridate, oh how I adore you π
#> You make my dates smooth and my times hot π₯
#> In R programming, you're all I've got ππΉ
::roses("valentine")
valentine#> Roses are red,
#> Valentine is too πΉ
#> With its data magic,
#> My love for it grew π