Integrates the currents API with R.
# install.packages("remotes") remotes::install_github("news-r/currents")
Specify you API key with currents_key
or put it in your .Renviron
as CURRENTS_API_KEY
.
library(currents) currents_key("xXxxXXXxXXxXxx")
Then use cur_latest
or cur_search
.
currents::cur_search(keyword = "Donald Trump", language = "en")
You can also filter results by region, country or language.
currents::cur_avail_categories()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.