Abandon the notorious keyring package which is causing trouble under certain architectures and deployment environments such as shinyapps.io.
The idea is to store the key as plain environment variable, preferable in .Renviron. In order to ease-up the set-up procedure and to retain previous functionality introduce an intelligent way of updating .Renviron through a call to ors_api_key(<YOUR_API_KEY>). See ?Startup for R startup details.
To remain CRAN compliant, ask for user permission before updating .Renviron (see e.g. rsam).
Abandon the notorious keyring package which is causing trouble under certain architectures and deployment environments such as shinyapps.io.
The idea is to store the key as plain environment variable, preferable in
.Renviron
. In order to ease-up the set-up procedure and to retain previous functionality introduce an intelligent way of updating.Renviron
through a call toors_api_key(<YOUR_API_KEY>)
. See?Startup
for R startup details.To remain CRAN compliant, ask for user permission before updating
.Renviron
(see e.g. rsam).