https://github.com/tadascience/valentine
❤️ Spread the love for R packages with poetry 🌹
https://github.com/tadascience/valentine
ai chatgpt ellmer love poetry r-package valentine valentine-day
Last synced: 8 months ago
JSON representation
❤️ Spread the love for R packages with poetry 🌹
- Host: GitHub
- URL: https://github.com/tadascience/valentine
- Owner: tadascience
- License: other
- Created: 2024-02-10T15:56:09.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-10T08:42:36.000Z (over 1 year ago)
- Last Synced: 2025-10-22T03:55:31.582Z (8 months ago)
- Topics: ai, chatgpt, ellmer, love, poetry, r-package, valentine, valentine-day
- Language: R
- Homepage: http://valentine.tada.science/
- Size: 5.44 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.Rmd
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Support: .github/SUPPORT.md
Awesome Lists containing this project
README
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
[](https://CRAN.R-project.org/package=valentine)
[](https://github.com/tadascience/valentine/actions/workflows/R-CMD-check.yaml)
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](https://ellmer.tidyverse.org/) 📦.
## Installation
You can install the development version:
``` r
pak::pak("tadascience/valentine")
```
## Setup
`valentine::roses()` uses a [Chat](https://ellmer.tidyverse.org/reference/Chat.html)
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()](https://ellmer.tidyverse.org/reference/chat_openai.html)
which is usually good enough for such a simple task.
Please refer to [ellmer](https://ellmer.tidyverse.org/index.html) documentation
for information on setting up api keys, etc ...
## Example
```{r example}
valentine::roses("dplyr")
valentine::roses("lubridate", hint = "make it kinky")
valentine::roses("valentine")
```
