I am trying to download rmarkdown but i get these errors:
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
namespace 'xfun' 0.13 is being loaded, but >= 0.19 is required
ERROR: lazy loading failed for package 'tinytex'
removing 'C:/Users/Owner/Documents/R/win-library/3.5/tinytex'
In R CMD INSTALL
ERROR: dependencies 'knitr', 'tinytex' are not available for package 'rmarkdown'
removing 'C:/Users/Owner/Documents/R/win-library/3.5/rmarkdown'
In R CMD INSTALL
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 'knitr'
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into βC:/Users/Owner/Documents/R/win-library/3.5β
(as βlibβ is unspecified)
There is a binary version available but the
source version is later:
binary source needs_compilation
xfun 0.13 0.20 TRUE
The problem is I just downloaded rtools newest version so I am confused
Rtools40 is to be used with R >= 4.0.0, since you are using an old R version, you have to download a suitable version from here R for Windows Build Tools Archive