Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Argument tooltips of method tooltips() expects list of character vectors - fails for numeric values. #260

Open
ablaette opened this issue Jul 18, 2023 · 0 comments

Comments

@ablaette
Copy link
Collaborator

See the following example. I think it is a common scenario that you want to use tooltips to inspect values of word weights. An implicit coercion to of values passed to a character vector would solve the issue.

library(polmineR)

use("RcppCWB")

corpus("REUTERS") %>% 
  subset(id == "127") %>% 
  read() %>% 
  highlight(list(lightgreen = "oil")) %>% 
  tooltips(list(lightgreen = 0.5))

corpus("REUTERS") %>% 
  subset(id == "127") %>% 
  read() %>% 
  highlight(list(lightgreen = "oil")) %>% 
  tooltips(list(lightgreen = "0.5"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant