I am trying to run sentiment analysis in R. I have installed tidytext and it is in the correct library with all other packages.
However, when I run
get_sentiments("afinn")
I get the following error:
Error in loadNamespace(name) : there is no package called ‘textdata’
Any suggestions on how to fix?