Skip to content

Commit

Permalink
Slightly improve example instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
jcheng5 committed Oct 8, 2024
1 parent 254f2f4 commit d3b8eca
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,16 @@ Chat UI component for [Shiny for R](https://shiny.posit.co/).
You can install the development version of shinychat from [GitHub](https://github.com/) with:

``` r
# install.packages("devtools")
devtools::install_github("jcheng5/shinychat")
# install.packages("pak")
pak::pak("jcheng5/shinychat")
```

## Example

To run this example, you'll first need to create an OpenAI API key, and set it in your environment as `OPENAI_API_KEY`.

You'll also need to call `pak::pak("hadley/elmer")` to install the {[elmer](https://github.com/hadley/elmer)} package.

```r
library(shiny)
library(shinychat)
Expand Down

0 comments on commit d3b8eca

Please sign in to comment.