I was trying to create a new Rmarkdown file, but I kept on getting pop-ups : " Creating R Markdown documents requires an updated version of the rmarkdown and xfun package.
Do you want to install this package now?"
I've clicked yes but the same thing happens. All my packages has been updated .
After some browsing, I managed to stop the problem with xfun. I tried to delete rmarkdown and manually re-install it. It gave me an error message:
Do you want to install from sources the package which needs compilation?
yes
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
namespace ‘htmltools’ 0.5.2 is being loaded, but >= 0.5.7 is required
Calls: ... withCallingHandlers -> loadNamespace -> namespaceImport -> loadNamespace
Execution halted
ERROR: lazy loading failed for package ‘bslib’
removing ‘/Users/rachailauliasadila/Library/R/4.0/library/bslib’
Warning in install.packages :
installation of package ‘bslib’ had non-zero exit status
For context, I only use RStudio when I have a uni project, and I haven't used it for almost a year now (which might be why the packages are out of date). I updated to masOS 13.2 and this is my first time using RStudio ever since the update.