Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
lnisc
New Member

undefinedCompatibility Issue with Power BI Service AND R 3.4.4 for some packages (example of ggplot2

Hello everyone,

I’m facing a frustrating issue related to using R 3.4.4 on Microsoft Power BI Service. As you may know, Power BI enforces this specific version of R, which severely limits compatibility with more recent R packages.

Current Situation:

R Version: 3.4.4 Environment: Power BI Services Problem: Cannot install ggplot2 and its dependencies

Key Challenges:

Manual installation attempts fail Dependency packages are not compatible Version constraints prevent package updates

Specific Questions:

Has anyone successfully installed ggplot2 on R 3.4.4 recently? Are there workarounds for package installations in this environment?

Any insights or solutions would be greatly appreciated. Cheers!

2 ACCEPTED SOLUTIONS
Poojara_D12
Memorable Member
Memorable Member

Hi @lnisc 

Install an Older Version of ggplot2:

  • Use CRAN Archive to install a compatible version, e.g.:

 

install.packages("https://cran.r-project.org/src/contrib/Archive/ggplot2/ggplot2_2.2.1.tar.gz", repos = NULL, type = "source")
​

Manually install compatible versions of dependencies (scales, plyr, etc.).

 

  • Pre-Install on Local R 3.4.4:

    • Install R 3.4.4 locally, install all required packages, and copy the library folder to the Power BI Service R installation directory.
  • Use MRAN Snapshot:

    • Install from MRAN snapshot of a date compatible with R 3.4.4, e.g.

 

install.packages("ggplot2", repos = "https://mran.microsoft.com/snapshot/2018-04-01")

 

  • Develop in Power BI Desktop:
    • Use a modern R version in Power BI Desktop for development and testing before publishing to Power BI Service.
  • Consider Alternatives:
    • Use simpler R libraries (base, lattice) or Power BI’s built-in visuals if ggplot2 remains problematic.
  • Test Locally:
    • Build and test scripts on a local R 3.4.4 environment to ensure compatibility.

 

By following these steps, you can work around Power BI's R version limitations effectively.

 

Did I answer your question? Mark my post as a solution, this will help others!

If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂

Kind Regards,
Poojara
Data Analyst | MSBI Developer | Power BI Consultant
Please Subscribe my YouTube for Beginners/Advance Concepts: https://youtube.com/@biconcepts?si=04iw9SYI2HN80HKS 

View solution in original post

v-xuxinyi-msft
Community Support
Community Support

Hi @lnisc 

 

Thanks for the reply from Poojara_D12 .

 

Are you using R script visual and then publishing the report to Power BI Service? If I understand correctly, from my testing, it works with R 4.4.1.

 

vxuxinyimsft_0-1732676642570.png

 

vxuxinyimsft_1-1732676702844.png

 

Output in Power BI Service:

vxuxinyimsft_2-1732677018257.png

 

 

Best Regards,
Yulia Xu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-xuxinyi-msft
Community Support
Community Support

Hi @lnisc 

 

Thanks for the reply from Poojara_D12 .

 

Are you using R script visual and then publishing the report to Power BI Service? If I understand correctly, from my testing, it works with R 4.4.1.

 

vxuxinyimsft_0-1732676642570.png

 

vxuxinyimsft_1-1732676702844.png

 

Output in Power BI Service:

vxuxinyimsft_2-1732677018257.png

 

 

Best Regards,
Yulia Xu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Poojara_D12
Memorable Member
Memorable Member

Hi @lnisc 

Install an Older Version of ggplot2:

  • Use CRAN Archive to install a compatible version, e.g.:

 

install.packages("https://cran.r-project.org/src/contrib/Archive/ggplot2/ggplot2_2.2.1.tar.gz", repos = NULL, type = "source")
​

Manually install compatible versions of dependencies (scales, plyr, etc.).

 

  • Pre-Install on Local R 3.4.4:

    • Install R 3.4.4 locally, install all required packages, and copy the library folder to the Power BI Service R installation directory.
  • Use MRAN Snapshot:

    • Install from MRAN snapshot of a date compatible with R 3.4.4, e.g.

 

install.packages("ggplot2", repos = "https://mran.microsoft.com/snapshot/2018-04-01")

 

  • Develop in Power BI Desktop:
    • Use a modern R version in Power BI Desktop for development and testing before publishing to Power BI Service.
  • Consider Alternatives:
    • Use simpler R libraries (base, lattice) or Power BI’s built-in visuals if ggplot2 remains problematic.
  • Test Locally:
    • Build and test scripts on a local R 3.4.4 environment to ensure compatibility.

 

By following these steps, you can work around Power BI's R version limitations effectively.

 

Did I answer your question? Mark my post as a solution, this will help others!

If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂

Kind Regards,
Poojara
Data Analyst | MSBI Developer | Power BI Consultant
Please Subscribe my YouTube for Beginners/Advance Concepts: https://youtube.com/@biconcepts?si=04iw9SYI2HN80HKS 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.