Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

SentimentR package generated an "ENVSXP" error

Hello Everyone,

 

I have been trying to perform text analysis using R and PowerBI, but one particular package - Sentimentr keeps giving me errors. 

 

I am using PowerBI desktop to run an R transformation using Sentimentr to create Sentiment scores for a text in the dataset.

However, the moment I run the R-Code, I am presented with an error DataFormat.Error: ENVSXP without any specific information on what might have caused the error.

 

 

Can you please help with understanding what might be wrong or how to circumvent the error for Sentiment results ?

 

Please note that while I am using PowerBI Desktop (August 2021 release), the code runs perfectly in R-Studio. Additionally, Sentimentr package is fully supported by PowerBI service to the latest version 2.7.1.

 

Thank you all for your time and help ! 

  • Hi  Anonymous ,

     

    Please follow this document to check whether you applied correct steps to run R script in the newest Power BI desktop.

     

    Best Regards,
    Kelly

    Did I answer your question? Mark my reply as a solution!

3 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thank you ! I did check the thread, but I think a resolution was not reached to the problem. The only other comment at that time (2019) was that the package was not supported by PowerBI, however, the package is now supported. Yet the problem still exists in the running the package through PowerBI. 

      • v-kelly-msft's avatar
        v-kelly-msft
        Icon for Community Support rankCommunity Support

        Hi  Anonymous ,

         

        Please follow this document to check whether you applied correct steps to run R script in the newest Power BI desktop.

         

        Best Regards,
        Kelly

        Did I answer your question? Mark my reply as a solution!