After updating my R version I faced the
Graphics API version mismatch error while creating plots. after updating packages
Cairo this error disappeared. but when I tried to save a plot as pdf or knitr my markdown this error appeared, again.
Does anyone know any solution to this?