How to use “textaInit” function in “mscstexta4r” package for Microsoft Cognitive Services?
<p>I am using “mscstexta4r” package for sentimental analysis. It is mentioned to run textaInit() before using the core functions. I am not able to figure out how to use , i have tried to use it as mentioned, in the code below(example code mentioned for the package) but it returns an error.</p>

<pre><code>library(mscstexta4r)
#MSCS_TEXTANALYTICS_URL = 'https://westus.api.cognitive.microsoft.com/text/analytics/v2.0/sentiment' (Set in Sys.setenv())
#MSCS_TEXTANALYTICS_KEY='XXXX'(Set in Sys.setenv())

textaInit()

docsText &lt;- c(
  "Loved the food, service and atmosphere! We'll definitely be back."

)
docsLanguage &lt;- rep("en", length(docsText))
tryCatch({
  # Perform sentiment analysis
  docsSentiment &lt;- textaSentiment(
    documents = docsText, # Input sentences or documents
    languages = docsLanguage
    # "en"(English, default)|"es"(Spanish)|"fr"(French)|"pt"(Portuguese)
  )
  class(docsSentiment)
  str(docsSentiment, max.level = 1)
  docsSentiment

}, error = function(err) {
  geterrmessage()
})
</code></pre>

<p>Error :</p>

<pre><code>"Error: mscstexta4r: Not Found (HTTP 404). - { "statusCode": 404, "message": "Resource not found" }"    
</code></pre>

<p>.
Thanks in advance.</p>