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'
* removing 'C:/Users/mazen/Documents/R/win-library/3.5/knitr'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘knitr’ had non-zero exit status
ERROR: dependency 'knitr' is not available for package 'rmarkdown'
* removing 'C:/Users/mazen/Documents/R/win-library/3.5/rmarkdown'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘rmarkdown’ had non-zero exit status
答案 0 :(得分:1)
您需要安装 xfun 的最新版本:
install.packages('xfun')
但是,您的R版本太旧(3.5.x)。使用此旧版本的R,您将无法访问CRAN的预构建二进制版本的 xfun 。您有两个选择:
除非您处于禁止您升级R的锁定环境中,否则我强烈建议您升级R,而不要为旧版本的R安装Rtools。