Computation failed in `stat_smooth()`: object 'C_crspl' not found

Viewed 9663

I am trying to add a geom_smooth() to a qplot() with the following code:

library(ggplot2)
library(ggplot2movies)
qplot(votes, rating, data = movies) + geom_smooth()

However, the smoother is missing from the plot. I also receive the following warning message:

Computation failed in stat_smooth(): object 'C_crspl' not found

Does anybody know what is wrong here?

This is my setup:

> sessionInfo()
R version 3.4.1 (2017-06-30)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.1 LTS
4 Answers

I also had this problem and almost gave up. However, when I simply reinstalled mgcv before and ggplot2 later, the script simply went back to working as before.

Related