cancel
Showing results for 
Search instead for 
Did you mean: 
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
Microsoft
Microsoft

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?

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
Winner of T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Find out who won the T-Shirt Design Challenge and the top 3 finalists.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.