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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

R Script with Power BI

I’m publishing a  Power BI report with R script in Power BI Pro and getting following error.

I’m not using anywhere 'showtext.opts(), 'font.add() function. How can I resolve this error.

And also I’m not able to understand the “Error in stats::complete.cases()”

Please help.

 

 

Script Runtime Error

 

'showtext.opts()' is now renamed to 'showtext_opts()'

The old version still works, but consider using the new function in future code

'showtext.begin()' is now renamed to 'showtext_begin()'

The old version still works, but consider using the new function in future code

[1] "font in use: arial.ttf"

'font.add()' is now renamed to 'font_add()'

The old version still works, but consider using the new function in future code

 

Error in stats::complete.cases(df[, vars, drop = FALSE]) :

  invalid 'type' (list) of argument

 

 

Any help would be appriciated.

1 ACCEPTED SOLUTION

@Anonymous ,

 

Have you solved your issue by now? If you have, could you please help mark the correct answer to finish the thread? Your contribution will be much appreciated.

 

Regards,

Jimmy Tao

View solution in original post

4 REPLIES 4
v-yuta-msft
Community Support
Community Support

@Anonymous ,

 

This should be an issue about R script, please refer to R method doc below:

https://stat.ethz.ch/R-manual/R-devel/library/stats/html/complete.cases.html

 

Replace all the old version function with the new version function.

 

Community Support Team _ Jimmy Tao

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

 

Anonymous
Not applicable

I’ve Replaced all the old version function with the new version function using recent R version 3.5.3 . But still I’m getting below error.

 

Script Runtime Error

 

'showtext.opts()' is now renamed to 'showtext_opts()'

The old version still works, but consider using the new function in future code

'showtext.begin()' is now renamed to 'showtext_begin()'

The old version still works, but consider using the new function in future code

[1] "font in use: arial.ttf"

'font.add()' is now renamed to 'font_add()'

The old version still works, but consider using the new function in future code

@Anonymous ,

 

Have you solved your issue by now? If you have, could you please help mark the correct answer to finish the thread? Your contribution will be much appreciated.

 

Regards,

Jimmy Tao

@Anonymous ,

 

Have you saved the R script and run again? Does the error in last line still persists?

 

Community Support Team _ Jimmy Tao

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

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.