Rdocumentation
powered by
Learn R Programming
newsanchor (version 0.1.1)
Client for the News API
Description
Interface to gather news from the 'News API', based on a multilevel query
. A personal API key is required.
Copy Link
Link to current version
Version
Version
0.1.1
0.1.0
Install
install.packages('newsanchor')
Monthly Downloads
206
Version
0.1.1
License
MIT + file LICENSE
Maintainer
Buhl Yannik
Last Published
June 29th, 2019
Functions in newsanchor (0.1.1)
Search all functions
extract_newsanchor_sources
Extracts data frame with News API sources from response object.
build_newsanchor_url
Builds query URL for newsapi.org.
extract_newsanchor_metadata
Extracts metadata.
extract_newsanchor_articles
Extracts data frame with News API articles from response object.
get_sources
Returns selected sources from newsapi.org
get_headlines_all
Returns all headlines from newsapi.org
stop_if_invalid_category
Checks validity of a category.
collapse_to_comma_separated
Concatenate character vector to comma-separated string.
get_everything
Get resources of newsapi.org
parse_newsanchor_content
Parses content returned by query to the News API.
terms_sources
Terms Sources
terms_language
Terms Language
make_newsanchor_get_request
Makes a GET request to News API.
stop_if_invalid_country
Checks validity of a country
sample_response
Sample Response Object
set_api_key
Add API key to the .Renviron
get_everything_all
Returns all articles from newsapi.org in one data frame
get_headlines
Returns selected headlines from newsapi.org
terms_category
Terms Category
terms_country
Terms Country
stop_if_invalid_language
Checks validity of a language
stop_if_invalid_source
Checks validity of a source