Cannot Download Rmarkdown

Please ask your questions about R Markdown here.

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

Thank you for the help

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/Owner/Documents/R/win-library/3.5/knitr'

as well as this

The error message is asking you to update the xfun package

install.packages("xfun")

thank you, I tried to update but got this message

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

thank you so much for the help

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

thank you so much for the help. I cannot thank you enough.

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.