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
Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

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!

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Power BI Release May 2022 768x460.png

Check it out!

Click here to read more about the May 2022 updates!