cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
np212r
Regular Visitor

R script: Unable to connect- envsxp

Hi I continue to get "Unable to Connect. Details: ENVSXP" When trying to connect my rscript to powerbi. My script runs completely fine on RStudio but just cannot connect to PowerBI. I see that this error occurs when I try to use a function from the anomalize package. What does ENVSXP mean, and how do I fix this error.

3 REPLIES 3
v-yulgu-msft
Microsoft
Microsoft

Hi @np212r,

 

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

 

Regards,

Yuliana Gu

 

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Yes, I have. Here is a script you can run and see the ENVSXP error. However, when you run this script in Rstudio it works perfectly.

 

library(anomalize)

library(dplyr)

sub= tidyverse_cran_downloads %>%
  time_decompose(count) %>%
  anomalize(remainder)

Yes, I have. Here is a script you can run and see the ENVSXP error. However, when you run this script in Rstudio it works perfectly.

 

library(anomalize)

library(dplyr)

sub= tidyverse_cran_downloads %>%
  time_decompose(count) %>%
  anomalize(remainder)

Helpful resources

Announcements
May 23 2022 epsiode 5 without aka link.jpg

The Power BI Community Show

Welcome to the Power BI Community Show! Jeroen ter Heerdt talks about the importance of Data Modeling.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!

Power BI Dev Camp Session 22 with aka link 768x460.jpg

Check it out!

Mark your calendars and join us on Thursday, May 26 at 11a PDT for a great session with Ted Pattison!

Power BI Release May 2022 768x460.png

Check it out!

Click here to read more about the May 2022 updates!