First time posting, hoping not to mess it up. I cannot seem to download packages in Rstudio on Windows. I have tried several packages (R markdown, xfun, htmlTable, sjPlot, Knitr, etc.) and get the same error each time:
installing source package 'htmlTable' ...
** package 'htmlTable' successfully unpacked and MD5 sums checked
** R
** data
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
namespace 'xfun' 0.13 is being loaded, but >= 0.15 is required
ERROR: lazy loading failed for package 'htmlTable'
- removing 'C:/Users/seaso_000/Documents/R/win-library/3.5/htmlTable'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘htmlTable’ had non-zero exit status
I have seen advice on this forum and have tried the following: downloading developer version from CRAN, updating packages, updating Xfun, updating R markdown, etc. Most of the advice seems to be for MAC OS, but tried anyway but did not work. I also tried installing with dependencies = TRUE which also did not work. This is happening for almost every program I tried to download.
I don't know how to produce a reproducible example as it is all package loading. Any advice would be appreciated. I recently downloaded Ubuntu to my computer (would this interfere?). I also know that knitr dependencies (required for markdown and other packages) were removed from CRAN, could this cause the issue?
I'm at a total loss. Thank you for any help you can provide.