-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
52 lines (39 loc) · 1.61 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# valentine <a href="https://valentine.tada.science"><img src="man/figures/logo.png" align="right" height="138" /></a>
<!-- badges: start -->
[![CRAN status](https://www.r-pkg.org/badges/version/valentine)](https://CRAN.R-project.org/package=valentine)
[![R-CMD-check](https://github.com/tadascience/valentine/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/tadascience/valentine/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->
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")
```