Setting API Key for ESV Translation

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

Certain bible translations are hidden behind an API key-wall, such as the ESV - English Standard Version. You can access the ESV version of your daily proverb after you obtain a free API key from the ESV website. Here are the steps; takes about 5 minutes.

Create an account

Go to https://www.esv.org/ and sign up for a free account.

Create an API application

Navigate to https://api.esv.org/account/ and click on Create an API application:

Check a few boxes and you'll see a token like this:

Copy the token after Token and keep it handy.

Set the environmental variable in RStudio

Assuming you're using RStudio, enter this token in a special environmental variable.

usethis::edit_r_environ()

Note the empty line in the .Renviron file, it's important.

Restart

Restart your RStudio session and you should be able to view the ESV version



Try the proverbs package in your browser

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

proverbs documentation built on Nov. 18, 2023, 5:08 p.m.