qf_get_emm_newsbrief: Get current news in multiple languages from EMM newsbrief

Description Usage Arguments Value

View source: R/qf_emm_newsbrief.R

Description

Imports and cleans RSS files from [http://emm.newsbrief.eu/]

Usage

1
2
3
4
5
6
7
8
qf_get_emm_newsbrief(
  languages = "en",
  category_id = "rtn",
  keep_xml = TRUE,
  shuffle = TRUE,
  store = TRUE,
  store_only_new = TRUE
)

Arguments

languages

A character vector of one or more languages as two letter codes (e.g. "en"). Defaults to "en", as the previous default, "all", is not any more available. Current available languages are: 'c("ar","bg","cs","da","de","el","en","es", "et","fi","fr","hr", "hu","it", "lt","lv","nl","pl","pt","ro","ru", "sk","sl","sv","sw","tr","zh")'

category_id

A character vector of length 1, defaults to "rtn" (default category with all contents). The id for separate categories can be derived from the URL of the given section, e.g. for EC news the id is "ECnews".

keep_xml

Logical, defaults to FALSE. If TRUE, removes the xml file downloaded from EMM newsbrief.

shuffle

Logical, defaults to TRUE. If TRUE, order in which languages are processed is randomised.

store

Logical, defaults to TRUE. If TRUE, it stores the data extracted from the xml as an rds file in a local subfolder, organised by language and date.

store_only_new

Logical, defaults to TRUE. Before storing outputs, it checks the previous file and keeps only articles published after the most recent article incldued in the previous post.

Value

Nothing, used for its side effects.


giocomai/edjnetquotefinder documentation built on Feb. 11, 2022, 12:51 p.m.