Tried updating the Markdown package, but keep getting the error!
install.packages("rmarkdown", lib = "C:/Users/Yogesh Vohra/Documents/R/win-library/3.5")
Error in install.packages : Updating loaded packages
Restarting R session...
install.packages("rmarkdown", lib = "C:/Users/Yogesh Vohra/Documents/R/win-library/3.5")
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/
also installing the dependencies ‘knitr’, ‘tinytex’, ‘xfun’
There are binary versions available but the source versions are later:
binary source needs_compilation
knitr 1.28 1.31 FALSE
tinytex 0.22 0.29 FALSE
xfun 0.13 0.20 TRUE
rmarkdown 2.1 2.6 FALSE
Binaries will be installed
trying URL'
Content type 'application/zip' length 184719 bytes (180 KB)
downloaded 180 KB
package ‘xfun’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Yogesh Vohra\AppData\Local\Temp\Rtmp639OTh\downloaded_packages
installing the source packages ‘knitr’, ‘tinytex’, ‘rmarkdown’
trying URL
Content type 'application/x-gzip' length 891732 bytes (870 KB)
downloaded 870 KB
trying URL ''
Content type 'application/x-gzip' length 27768 bytes (27 KB)
downloaded 27 KB
trying URL 'https://cran.rstudio.com/src/contrib/rmarkdown_2.6.tar.gz'
Content type 'application/x-gzip' length 3213194 bytes (3.1 MB)
downloaded 3.1 MB
- installing source package 'knitr' ...
** package 'knitr' successfully unpacked and MD5 sums checked
** R
** demo
** 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.19 is required
ERROR: lazy loading failed for package 'knitr' - removing 'C:/Users/Yogesh Vohra/Documents/R/win-library/3.5/knitr'
- restoring previous 'C:/Users/Yogesh Vohra/Documents/R/win-library/3.5/knitr'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘knitr’ had non-zero exit status - installing source package 'tinytex' ...
** package 'tinytex' successfully unpacked and MD5 sums checked
** R
** 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.19 is required
ERROR: lazy loading failed for package 'tinytex' - removing 'C:/Users/Yogesh Vohra/Documents/R/win-library/3.5/tinytex'
- restoring previous 'C:/Users/Yogesh Vohra/Documents/R/win-library/3.5/tinytex'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘tinytex’ had non-zero exit status - installing source package 'rmarkdown' ...
** package 'rmarkdown' successfully unpacked and MD5 sums checked
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
namespace 'knitr' 1.21 is being loaded, but >= 1.22 is required
ERROR: lazy loading failed for package 'rmarkdown' - removing 'C:/Users/Yogesh Vohra/Documents/R/win-library/3.5/rmarkdown'
- restoring previous 'C:/Users/Yogesh Vohra/Documents/R/win-library/3.5/rmarkdown'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘rmarkdown’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\Yogesh Vohra\AppData\Local\Temp\Rtmp639OTh\downloaded_packages’