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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
shail
New Member

power bi data gateway for R integration

Hello Experts,

 

I am stuck with Power-Bi gateway(Personal mode) configuration for R script which is running in PowerBi application.

 

Only "Windows" authentication mode is coming .

 

Error:- "Fail to update data source credentials"

 

Need your immediate attention.

 

Regards,

Shailendra

+91 9739144111

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @shail,

 

Please take a look at following link who told about use r visual and its limitation:

Creating R visuals in the Power BI service

 

R scripts security

R visuals are created from R scripts, which could potentially contain code with security or privacy risks.

These risks mainly exist in the authoring phase when the script author run the script on their own computer.

The Power BI service applies a sandbox technology to protect users and the service from security risks.

This sandbox approach imposes some restrictions on the R scripts running in the Power BI service, such as accessing the Internet, or accessing to other resources that are not required to create the R visual.

 

Known Limitations

R visuals in the Power BI service have a few limitations:

  • R visuals support is limited to the packages identified on the following page . There currently is no support for custom packages.
  • Data size limitations – data used by the R visual for plotting is limited to 150,000 rows. If more than 150,000 rows are selected, only the top 150,000 rows are used and a message is displayed on the image.
  • Calculation time limitation – if an R visual calculation exceeds 60 seconds the script times out, resulting in an error.
  • R visuals are refreshed upon data updates, filtering, and highlighting. However, the image itself is not interactive and does not support tool tips.
  • R visuals respond to highlighting other visuals, but you cannot click on elements in the R visual in order to cross filter other elements.
  • R visuals are currently not supported for the Time data type. Please use Date/Time instead.
  • R Visuals do not display when using Publish to web.
  • R visuals currently do not print with dashboard and reports printing
  • R visuals are currently not supported in the DirectQuery mode of Analysis Services

 

Requirements and Limitations of R packages

There are a handful of requirements and limitations for R packages:

  • The Power BI service, for the most part, supports R packages with free and open-source software licenses such as GPL-2, GPL-3, MIT+, and so on.
  • The Power BI service supports packages published in CRAN. The service does not support private or custom R packages. We encourage users to make their private packages available on CRAN prior to requesting the package be available in the Power BI service.
  • For Power BI Desktop has two variations for R packages:

    • For R visuals, you can install any package, including custom R packages
    • For Custom R visuals, only public CRAN packages are supported for auto-installation of the packages
  • For security and privacy reasons, we currently don't support R packages that provide client-server queries over the World-Wide Web (such as RgoogleMaps) in the service. Networking is blocked for such attempts. See R packages in the Power BI service for a list of supported and unsupported R packages.
  • The approval process for including a new R package has a tree of dependencies; some dependencies required to be installed in the service cannot be supported.

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

4 REPLIES 4
simontaylor
Employee
Employee

Is R script run supported by default on public gateway? Is private gateway the only option like Python?

shail
New Member

Hello Experts, I am stuck with Power-Bi gateway(Personal mode) configuration for R script which is running in PowerBi application. Only "Windows" authentication mode is coming . Error:- "Fail to update data source credentials" Need your immediate attention. Regards, Shailendra +91 9739144111

Anonymous
Not applicable

Hello Shai,

 

Did you manage to run the R script on the online version? I am fetching my data using an R script, this works fine in the desktop version but I am getting a gateway error when trying to refresh on the online version.

 

Any ideas?

 

Andres

v-shex-msft
Community Support
Community Support

Hi @shail,

 

Please take a look at following link who told about use r visual and its limitation:

Creating R visuals in the Power BI service

 

R scripts security

R visuals are created from R scripts, which could potentially contain code with security or privacy risks.

These risks mainly exist in the authoring phase when the script author run the script on their own computer.

The Power BI service applies a sandbox technology to protect users and the service from security risks.

This sandbox approach imposes some restrictions on the R scripts running in the Power BI service, such as accessing the Internet, or accessing to other resources that are not required to create the R visual.

 

Known Limitations

R visuals in the Power BI service have a few limitations:

  • R visuals support is limited to the packages identified on the following page . There currently is no support for custom packages.
  • Data size limitations – data used by the R visual for plotting is limited to 150,000 rows. If more than 150,000 rows are selected, only the top 150,000 rows are used and a message is displayed on the image.
  • Calculation time limitation – if an R visual calculation exceeds 60 seconds the script times out, resulting in an error.
  • R visuals are refreshed upon data updates, filtering, and highlighting. However, the image itself is not interactive and does not support tool tips.
  • R visuals respond to highlighting other visuals, but you cannot click on elements in the R visual in order to cross filter other elements.
  • R visuals are currently not supported for the Time data type. Please use Date/Time instead.
  • R Visuals do not display when using Publish to web.
  • R visuals currently do not print with dashboard and reports printing
  • R visuals are currently not supported in the DirectQuery mode of Analysis Services

 

Requirements and Limitations of R packages

There are a handful of requirements and limitations for R packages:

  • The Power BI service, for the most part, supports R packages with free and open-source software licenses such as GPL-2, GPL-3, MIT+, and so on.
  • The Power BI service supports packages published in CRAN. The service does not support private or custom R packages. We encourage users to make their private packages available on CRAN prior to requesting the package be available in the Power BI service.
  • For Power BI Desktop has two variations for R packages:

    • For R visuals, you can install any package, including custom R packages
    • For Custom R visuals, only public CRAN packages are supported for auto-installation of the packages
  • For security and privacy reasons, we currently don't support R packages that provide client-server queries over the World-Wide Web (such as RgoogleMaps) in the service. Networking is blocked for such attempts. See R packages in the Power BI service for a list of supported and unsupported R packages.
  • The approval process for including a new R package has a tree of dependencies; some dependencies required to be installed in the service cannot be supported.

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors