I'm not able to Knit after I install new version of R, Rstudio and Rtools

I have a solution! Try to remove the package "xfun" from the packages section. And reinstall. Now I can knit to PDF. That is what worked for me, I hope it helps!