Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
crsjunior
Advocate I
Advocate I

Rstudio not opening

I'm working in Power BI Desktop on the company's notebook, and don't have authorization to install programs in the 

C:\Program Files. So I installed Rstudio in another directory. My Power BI isn't recognizing the Rstudio IDE even when i show him the .exe path.

Does anyone know how I can solve it without changing the .exe directory?

6 REPLIES 6
bcdobbs
Community Champion
Community Champion

Have you set the path to the IDE in power bi settings?


See screen shot of settings screen in...

https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-r-ide



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

Yes.

Even with the path setted there, I still keep getting the "unespected error"

crsjunior_0-1639393793207.png

crsjunior_1-1639393824666.png

 

bcdobbs
Community Champion
Community Champion

bcdobbs_0-1639294535112.png

 



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
crsjunior
Advocate I
Advocate I

Maybe I dind't explain it correctly, R is working fine haha
The problem is when a I try to open the Rstudio IDE directly from the R script editor in Power BI, so I can work on the script with the selected columns.

crsjunior_0-1639246900088.png

 

Haha. I completely misunderstood.

 

Unfortunately, I'm not familiar with this error so maybe someone else can jump in.

AlexisOlson
Super User
Super User

If you want to use R in Power BI, you need to point it at the R home directory (where R is installed), not RStudio.

 

Since RStudio is a program for developing R and not the installation of the language itself, it would be a bit like linking to Notepad.exe if that's where you chose to edit your R instead.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.