Forum Discussion

svarghese's avatar
svarghese
Advocate I
8 years ago
Solved

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

 

 

  • Update: Resolved. 

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

6 Replies

  • v-jiascu-msft's avatar
    v-jiascu-msft
    Microsoft Employee

    Hi svarghese,

     

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

    R_with_Power_BI

     

    Best Regards,

    Dale

    • svarghese's avatar
      svarghese
      Advocate I

      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 :-(

      • svarghese's avatar
        svarghese
        Advocate I

        Update: Resolved. 

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