Overview
Power BI provides a flexibility to create your own custom visuals using R scripting.
In order to set up R, we need to install the following set up files in our machine.
Installation of R
- You can download set up files for R engine using the following URL
https://mran.revolutionanalytics.com/download
- Once the file is downloaded, run the set-up file.
- Click Continue to begin the installation.
- Configure the installation path and click on the Continue button.
- Accept License Agreement for Microsoft R Open and click on Continue button.
- Accept License Agreement for Math Kernel Libraries and click on Continue button.
- Click on the Install button.
- When the set-up files are being installed, you can see the progress bar as follows.
- Once, installation is completed click on Finish.
Once, the R engine is installed successfully, you need to configure R with Power BI.
Configure R with Power BI
- Open Power BI Desktop.
- Go to File menu, From Options and settings, select Options.
- Select R scripting from left side options. Make sure you R installation path is detected in Detected R home directories. (See following image).
Once, you configure the R engine, let’s install R Studio. Please visit this article which shows how we can install R Studio.
Conclusion
This is how we can set-up an R engine in Power BI. Hope you love this article!