The error which comes with the highlight function is
Error in [.data.table(y, , list(sentiment = attributes(x)["averaging.function"], :
attempt to apply non-function
The highlight function was working fine with both stansent and sentimentr previously but now only works with sentimentr. The sentimentr package used is V 2.8.1