Perplexity

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

Creating an Perplexity Account

Creating an Perplexity API Key

Setting the Perplexity API Key in .Renviron

To modify the .Renviron file:

#| eval: false
require(usethis)
edit_r_environ()

For a persistent setting, add the following line to .Renviron, replacing "<APIKEY>" with your actual Perplexity API key:

PERPLEXITY_API_KEY="<APIKEY>"

Save the file and restart your R session for the changes to take effect.

Caution: Ensure .Renviron is not exposed if using version control systems.



Try the gptstudio package in your browser

Any scripts or data that you put into this service are public.

gptstudio documentation built on May 29, 2024, 12:30 p.m.