– From the Power BI Desktop menu, select File > Options and settings > Options.
– On the left side of the Options page, under Global, select R scripting
Visuals created with R scripts, commonly called R visuals, can present advanced data shaping and analytics such as forecasting, using the rich analytics and visualization power of R. ... Once the report is created in Power BI Desktop, you can publish the report containing one or more R visuals to the Power BI service
- In Power BI Desktop, select Get data, choose Other > R script, and then select Connect: - If R is installed on your local machine, just copy your script into the script window and select OK. The latest installed version is displayed as your R engine. - Select OK to run the R Script
- From the Power BI Desktop menu, select File > Options and settings > Options. - On the left side of the Options page, under Global, select R scripting