unnest_tokens() was deprecated in tidytext 0.4.0 and is now defunct
Attempting to create a 2-node graph through twitter data within R and am receiving the following error message.
twomode_network <- twitter_data %>% Create("twomode", removeTermsOrHashtags = c("#auspol"), verbose = TRUE)
twomode_graph <- twomode_network %>% Graph()
Generating twitter 2-mode network...
Error:
! `unnest_tokens()` was deprecated in tidytext 0.4.0 and is now defunct.
Run `rlang::last_trace()` to see where the error occurred.
Thanks for reporting this! I fixed this (confusing) message on GitHub here and now you correctly see this:
Created on 2023-06-01 with reprex v2.0.2
As before you will see this error when using
unnest_tokens()withtoken = "tweets":Created on 2023-06-01 with reprex v2.0.2
The tweet-specific tokenizer was removed because of changes in upstream dependencies; you can see this in the documentation here.