I updated R to 4.0.2 yesterday, and that seems to have crippled RMarkdown for me. I am able to create new R scripts, but I cannot create new Markdown files or knit my existing ones. Whenever I try to knit a file that previously knit fine, I am confronted by the following message: "Install Required Packages: Rendering R Markdown documents requires updated versions of the following packages: rmarkdown, xfun. Do you want to install these packages now?" Whenever I try to create a new file, I am confronted by an almost-identical message. The only difference is a single word: "Rendering R Markdown..." becomes "Creating R Markdown..." When I click yes to both prompts, the output in Jobs is identical.
I am unfortunately unable to include the output from "Jobs" that was generated by clicking "Yes" to the prompt above in the body of my question - as a new user, I am limited to two links per question, and there are a number of links in the Jobs output. The output I receive is identical regardless of whether I am trying to knit or to create a new file.
Clicking "Yes" when prompted invariably does not work. The file will not knit, or the new Markdown file will not be created. When I try to knit again, or click to try and create a new Markdown file again, I am presented with the same prompts from before: "Install Required Packages: Rendering/Creating R Markdown documents requires updated versions of the following packages: rmarkdown, xfun. Do you want to install these packages now?" I wind up right back where I started all over again.
Within my existing R Markdown documents, trying to run any library() line often results in a fatal error as well. The errors I receive from this follow the following format:
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
there is no package called ‘xfun’
I'm not sure if that has any bearing on the issues I have with knitting and creating new documents, but I figured I would include it, just in case.
I am using Mac OS Sierra (10.12.6) - I don't know whether that might have any bearing on this. I have deleted and reinstalled R and RStudio twice today in the hopes that something would shift this, all to no avail. I have tried manually installing rmarkdown and xfun, to no avail. I have been completely stuck for the past four hours and have no idea where to go from here. Any insight anyone has on what I need to do would be greatly appreciated.