Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jbgruber/askgpt

A chat interface build on top of OpenAI's API endpoints
https://github.com/jbgruber/askgpt

Last synced: 13 days ago
JSON representation

A chat interface build on top of OpenAI's API endpoints

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%"
)
```

# askgpt

[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-green.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)
[![R-CMD-check](https://github.com/JBGruber/askgpt/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/JBGruber/askgpt/actions/workflows/R-CMD-check.yaml)
[![Codecov test coverage](https://codecov.io/gh/JBGruber/askgpt/branch/main/graph/badge.svg)](https://app.codecov.io/gh/JBGruber/askgpt?branch=main)
[![CRAN status](https://www.r-pkg.org/badges/version/askgpt)](https://CRAN.R-project.org/package=askgpt)
[![CRAN_Download_Badge](https://cranlogs.r-pkg.org/badges/grand-total/askgpt)](https://cran.r-project.org/package=askgpt)

You're new to R?
You don't quite understand the code you copied from that tutorial?
You get error messages that make no sense to you?
Don't worry, just *askgpt*!

`askgpt` is basically ChatGPT but from R (technically, it sends prompts to [OpenAI's API](https://openai.com/api/) directly from R).
It also has some additional functionality:

- Prompt *"What is wrong with my last command?"* (or *"help!"*) to get help on the last error R emitted
- Use the RStudio addin to comment, annotate or explain highlighted code

See more under [Usage](#usage).

## Installation

You can install release version of askgpt like so:

``` r
install.packages("askgpt")
```

You can install the development version of askgpt like so:

``` r
remotes::install_github("JBGruber/askgpt")
```

```{r echo=FALSE, results='asis'}
fig_path = "vignettes/figs"
res <- knitr::knit_child("vignettes/Usage.Rmd", quiet = TRUE)
cat(res, sep = '\n')
```