'R Quanteda Sentiment - Error in UseMethod ("valence"): no applicable method for 'valence' applied to an object of class "dictionary3"

I am trying to run the quanteda implemented sentiment dictionaries over my datasets. The script used to work well until a few days ago. However now when I am running the scripts again, the following error occurs and I can't figure out how to fix it. Is it a bug?

data_dictionary_LSD2015_pos_neg <- data_dictionary_LSD2015[1:2]

Error in UseMethod("valence") : 
  no applicable method for 'valence' applied to an object of class "dictionary3"

I would appreciate any help. Many thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source