COVAIL / cognizer

R package to call IBM Watson services.
http://columbuscollaboratory.com
Other
119 stars 41 forks source link

Authentication snag #7

Closed ideamonger closed 7 years ago

ideamonger commented 7 years ago

I am trying to access sentiment analysis through the alchemy service. I have the api key. I enter

text <- c("Columbus, Ohio is Awesome!", "Looking forward to UseR2017 in Brussels!") result <- text_sentiment(text, Yaa6xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx) str(result)

and I get

text <- c("Columbus, Ohio is Awesome!", "Looking forward to UseR2017 in Brussels!") result <- text_sentiment(text, Yaa6xxxxxxxxxxxxxxxxxxxx) Error in paste(c("apikey", "outputMode", "showSourceText"), c(api_key, : object 'Yaa6xxxxxxxxxxxxxxxxxxxxxxxxxxxxx' not found str(result) Error in str(result) : object 'result' not found

Is they key not recognized or is the syntax wrong?

synikitin commented 7 years ago

Hey,

It looks like your key is a name of a vector and not a string, that's why you are getting "object 'Yaa6xxxxxxxxxxxxxxxxxxxxxxxxxxxxx' not found".

So pass "Yaa6xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" to the function.

ideamonger commented 7 years ago

got it...