Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflict with polarity.frame customization #253

Open
iwiaCorp opened this issue Jul 10, 2019 · 1 comment
Open

Conflict with polarity.frame customization #253

iwiaCorp opened this issue Jul 10, 2019 · 1 comment

Comments

@iwiaCorp
Copy link

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
Copy link
Author

@abelard68 Thanks!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant