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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors