use(pkg = "RcppCWB", corpus = "REUTERS")
a <- partition("REUTERS", places = "argentina")
b <- html(a)
c <- highlight(b, lightgreen = "higher")
d <- tooltips(c, list(lightgreen = "Further information"))
if (interactive()) d
# Using the tooltips-method in a pipe ...
h <- a %>%
html() %>%
highlight(yellow = c("barrels", "oil", "gas")) %>%
tooltips(list(yellow = "energy"))
Run the code above in your browser using DataLab