The package ravapi provides a library/wrapper to the Alpha Vantage API if the user has a free or premium API key (see below).
You can install the current dev version with the devtools package:
devtools::install_github("shill1729/ravapi")
Register with Alpha Vantage to obtain a free API key or subscribe for a premium API key. Save these in your .Renviron file with
usethis::edit_r_environ()
and simply set in the .Renviron file the following variables:
free_api_key = "YOUR_KEY_CODE1"
premium_api_key = "YOUR_KEY_CODE2"
where the RHS is the actual key obtained from AV after registering for either the free or premium access. The second line is not required obviously if you only plan on registering a free API key.
By default a premium key is assumed in every function that calls the AV API. In the future we will add an option to set defaults.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.