cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Tamir Member
Member

Error in running an R script in Power Query

Hello,

 

I am trying to follow the example in Microsoft website

Using R in Query Editor

 

I have installed R 3.5.1 and latest RStudio.

I have installed the "mice" package.

I have loaded the file EuStockMarkets_NA and from within Power Query inserted the "Run R Script" step.

I have copied and pasted the code in the example and while running it, got an error message, :

 

DataSource.Error: ADO.NET: R script error.
Loading required package: lattice

Attaching package: 'mice'

The following objects are masked from 'package:base':

cbind, rbind

Error in parse(text = x, keep.source = FALSE) :.........

 

Please find the file in this link: Running R script error

 

Thank you for the help,

Regards,

Tamir

1 ACCEPTED SOLUTION

Accepted Solutions
Tamir Member
Member

Re: Error in running an R script in Power Query

I found the problem...

 

The script in the Microsoft Demo should have an extra line to set the dataset parameter

dataset <- read.csv(file="C:/Users/user/Google Drive/PowerPivot Power BI/EuStockMarkets_NA.csv", header=TRUE, sep=",")

 

Tamir

1 REPLY 1
Tamir Member
Member

Re: Error in running an R script in Power Query

I found the problem...

 

The script in the Microsoft Demo should have an extra line to set the dataset parameter

dataset <- read.csv(file="C:/Users/user/Google Drive/PowerPivot Power BI/EuStockMarkets_NA.csv", header=TRUE, sep=",")

 

Tamir

Helpful resources

Announcements
Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Power BI Helps Homeless and Trouble Youth

Power BI Helps Homeless and Trouble Youth

We spoke with Power BI Super User, Greg Deckler, about his charity work

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 48 members 1,197 guests
Please welcome our newest community members: