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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
mysorian
Helper I
Helper I

R script: From datasources

I choose R Script as the data source.

In the box that gets displayed I insert this script:

dataset=c(1,3,5,6,8,9,20)

I click OK.

 

The Navigator is displayed and comes up with a empty directory called R:. Now what?

 

RscriptSource.PNG

The same thing for not so simple scripts as well.

1 ACCEPTED SOLUTION
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @mysorian,

 

You should include a data frame which is used for storing data tables at the end your script, then it should work as expected.Smiley Happy

column1=c(1,3,5,6,8,9,20)
table1=data.frame(column1)

rs1.PNG

 

Regards

View solution in original post

2 REPLIES 2
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @mysorian,

 

You should include a data frame which is used for storing data tables at the end your script, then it should work as expected.Smiley Happy

column1=c(1,3,5,6,8,9,20)
table1=data.frame(column1)

rs1.PNG

 

Regards

dkay84_PowerBI
Microsoft Employee
Microsoft Employee

Have you configured Power BI desktop to use whatever local R you have installed?

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.