0

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?

1 Answers1

4

This means that the package is missing from your libraries. You need to install it with install.packages("textdata").

thus__
  • 460
  • 3
  • 16