- Download and install the R engine on the local machine (https://cran.r-project.org/bin/windows/base/).
- Install the ggplot2 package for R via the following command: install.packages("ggplot2").
- Optionally, install an IDE for editing R scripts, such as R Studio (https://www.rstudio.com/) or R Tools for Visual Studio.
R Scripting Options in Power BI Desktop
Confirm that the local R installation directory path is reflected in the R Scripting options in Power BI Desktop. The Detected R IDEs dropdown can be used to choose between multiple installed IDEs. If an R script visual has not been used in Power BI Desktop, an Enable script ...