Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Is it necessary to install R and R studio to view graphs in Power BI

Is it necessary to install R and R studio to view graphs in Power BI? One of the colleagues, whom I am sharing my Power BI report doesnot have R installed in that PC. It throws this error. 



Is there any way we can see the R graphs in Power BI without installing R programming into the system. Or is it necessary to install R language into the system to view the all the graphs generated from R in Power BI?


Here is the code:

# The following code to create a dataframe and remove duplicated rows is always executed and acts as a preamble for your script:

# dataset <- data.frame(PrimResult, DupResult, Element)
# dataset <- unique(dataset)

# Paste or type your script code here:
if (!require("tidyverse"))
install.packages("tidyverse", repos = "")
if (!require("ggplot2"))
install.packages("ggplot2", repos = "")

#dataset[] = 0
#qqplot(my_data$PrimResult.Theoretical., my_data$DupResult.Practical.,
# )

## - QQplots in GGPlot2
dataset %>%
theoretical = PrimResult,
sample = log(DupResult)
)) +
stat_qq() +
stat_qq_line() +
labs(title = "QQplots", caption = "X-axis logged") +
ylab("Theoretical") +

 If you want R to work in Power BI desktop, you have to install it separately.

if you publish the report to, it will work without installing R in the desktop (mostly)

* Matt is a Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

Helpful resources

2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors