Checks if a StackOverflow API is present in the environment and if not
gives instructions on how to create one.
add_stack_api()
Value
Prints instructions to the command line.
Examples
add_stack_api()
#> An API key is required to increase your daily rate limit from 300 to 10,000.
#> The first step is to sign up for an API key here: https://stackapps.com/apps/oauth/register
#> Now add it as a enviroment variable using the following code (replacing *** with your API key):
#>
#> Sys.setenv(STACK_EXCHANGE_KEY = "***")
#>
#> If using Rstudio server you may need to manually add the STACK_EXCHANGE_KEY to the .Renviron.