Forum Discussion

mysorian's avatar
mysorian
Helper I
9 years ago
Solved

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?

 

The same thing for not so simple scripts as well.

  • 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.:smileyhappy:

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

     

    Regards

2 Replies

  • dkay84_PowerBI's avatar
    dkay84_PowerBI
    Microsoft Employee

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

  • v-ljerr-msft's avatar
    v-ljerr-msft
    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.:smileyhappy:

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

     

    Regards