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