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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

RScriptWrapper.R Permission denied

I would like to use the Query Editor's R script feature in order to export a csv of a table/query.  I get this error when I try to run any R script.  I've found little information on RScriptWrapper.R.  Any help would be appreciated.

 

Je77rey_0-1646416169812.png

 

Je77rey_0-1646416809991.png

I have the latest MS R open installed as well as Rstudio

 

2 REPLIES 2
Daryl-Lynch-Bzy
Community Champion
Community Champion

Hi, @Anonymous   I going to start by asking "Why"?

 

 

  1. Power Query to export to Csv using R  -  not recommended Power Query should not be used to write data
  2. Power BI Visual to export to Csv using R  - might be limited because this is using Microsoft R library not your library.
  3. R to import from Power BI and the export to Csv - this is better option but required knowledge of the R.Olap connectors.

I would personally go for an easier option.  Use Power Query within Excel to export the data an Excel table.

 

Many thanks

Daryl

 

Anonymous
Not applicable

Thank you, Daryl.  I will look into other methods of extraction.  However, I still have the larger issue of not having access to Rscriptwrapper, which prevents any funtionality of using R within PowerBI, regardless of the 'why'.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

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.

Top Solution Authors