trinker / qdap

Quantitative Discourse Analysis Package: Bridging the gap between qualitative data and quantitative analysis
http://cran.us.r-project.org/web/packages/qdap/index.html
175 stars 44 forks source link

Conflict with polarity.frame customization #253

Open iwiaCorp opened 5 years ago

iwiaCorp commented 5 years ago

When I connected with Twitter API to get data tweets and use Qdap with polarity.frame customized throw the following error: derive_pubkey(key) : RAW() can only be applied to a 'raw', not a 'list'

for example:

twitteR::setup_twitter_oauth(consumerKey, consumerSecret, accessToken, accessSecret) #openssl

standardKey.pol <- qdapDictionaries::key.pol customKey.pol 

customKey.pol <- qdap::sentiment_frame(qdapDictionaries::positive.words, qdapDictionaries::negative.words)

qdap::counts(qdap::polarity(phrase, polarity.frame = customKey.pol)) #throw error Error in derive_pubkey(key) : RAW() can only be applied to a 'raw', not a 'list'

qdap::counts(qdap::polarity(phrase, polarity.frame = standardKey.pol)) #sucessful

Any suggestion, thanks

iwiaCorp commented 5 years ago

@abelard68 Thanks!!!