https://github.com/jonthegeek/robodeck
Quickly Generate Slide Decks with AI
https://github.com/jonthegeek/robodeck
Last synced: 24 days ago
JSON representation
Quickly Generate Slide Decks with AI
- Host: GitHub
- URL: https://github.com/jonthegeek/robodeck
- Owner: jonthegeek
- License: other
- Created: 2024-03-09T16:48:38.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-20T14:36:02.000Z (11 months ago)
- Last Synced: 2025-03-01T06:41:47.248Z (about 1 month ago)
- Language: R
- Homepage: https://jonthegeek.github.io/robodeck/
- Size: 4.99 MB
- Stars: 11
- Watchers: 2
- Forks: 2
- Open Issues: 9
-
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
- jimsghstars - jonthegeek/robodeck - Quickly Generate Slide Decks with AI (R)
README
---
output: github_document
---```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```[](https://lifecycle.r-lib.org/articles/stages.html#experimental)
[](https://CRAN.R-project.org/package=robodeck)
[](https://app.codecov.io/gh/jonthegeek/robodeck?branch=main)
[](https://github.com/jonthegeek/robodeck/actions/workflows/R-CMD-check.yaml)Sometimes it's easier to *edit* a deck than to *create* one from scratch.
Enter robodeck!This extremely experimental package uses the [OpenAI API](https://platform.openai.com/docs/api-reference/) to generate Quarto slide decks quickly.
## Installation
You can install the development version of robodeck from [GitHub](https://github.com/) with:
``` r
# install.packages("pak")
pak::pak("jonthegeek/robodeck")
```## Usage
We do not recommend using the output of this package without editing.
That said, the deck below was generated without editing, as an example.```{r full-deck}
library(robodeck)
description <-
"robodeck is an R package that utilizes the OpenAI API
(https://platform.openai.com/docs/api-reference/) to quickly generate Quarto
slide decks. In this lightning talk I will demonstrate how to use
robodeck::gen_deck() to automatically generate a slide deck from just a title
and description, and why you should carefully edit the results!" |>
stringr::str_squish()# Store an API key in an environment variable called OPENAI_API_KEY.
deck_markdown <- gen_deck(
title = "Introducing robodeck",
description = description,
minutes = 5
)
``````{r full-deck-result, echo=FALSE}
paste("| ", stringr::str_split_1(deck_markdown, "\n")) |>
cat(sep = "\n")
```Note that function calls will hit the OpenAI API, which is not free.
At the time of this writing, experiments with the API while writing this package have incurred a total cost of about $0.13, almost all of that while experimenting with the more expensive "GPT-4-turbo" API.
By default, robodeck uses the "GPT-3.5-turbo" API, which should cost <$0.01 to generate a deck.## Code of Conduct
Please note that the robodeck project is released with a [Contributor Code of Conduct](https://jonthegeek.github.io/robodeck/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.