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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
svarghese
Frequent Visitor

R with Power BI

I am trying to execute a R script within the Rvisual in PowerBI. I have written a small script , but when i try and run it, i get the error:

 

Microsoft.PowerBI.ExploreServiceCommon.ScriptHandlerException: R script error.

Fatal error: cannot open file 'RScriptWrapper.R': Permission denied

 

I have set the R home as "C:\Program Files\R\R-3.3.3" and Rstudio as the IDE.

 

Pleas elet me know what else needs to be done

 

 

1 ACCEPTED SOLUTION

Update: Resolved. 

The issue was because of mcafee antivirus causing some permisson issues between powerBi and R

View solution in original post

6 REPLIES 6
v-jiascu-msft
Employee
Employee

Hi @svarghese,

 

You could paste the code in the editor directly as the snapshot below shows. 

R_with_Power_BI

 

Best Regards,

Dale

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

HI Dale

 

Thats what i have done , running a simple ggplot script in the editor gives me an error. Lok slike some perissions issue but i cannot figure out what 😞

Update: Resolved. 

The issue was because of mcafee antivirus causing some permisson issues between powerBi and R

what parameter need to configure in McAfee? pl guide

I have a similar issue with permission being denied to 'RScriptWrapper.R', possibly due to mcafee.  Any suggestions on how you solved this?

Anonymous
Not applicable

You can check event logs in your antivirus software to consider allowing certain files (RScript.exe) to execute scripts. 
Or you could try publishing to the Power BI service, which worked for me.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors