I tried to update the "rmarkdown" package, but it failed, and showed:
There is a binary version available but the source version is later:
binary source needs_compilation
rmarkdown 1.13 1.14 FALSE
I thought the old version restricted the updating process, so I clicked the cross on the right side of "rmarkdown" package in the RStudio "Packages" window, then re-do the installation process: install.packages("rmarkdown").
However, after removing the package, the re-installation failed too.
The log is:
Installing package into ‘C:/Users/Harry Lu's X1/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
There is a binary version available but the source version is later:
binary source needs_compilation
rmarkdown 1.13 1.14 FALSE
installing the source package ‘rmarkdown’
trying URL 'https://cran.rstudio.com/src/contrib/rmarkdown_1.14.tar.gz'
Content type 'application/x-gzip' length 3163022 bytes (3.0 MB)
downloaded 3.0 MB
* installing *source* package 'rmarkdown' ...
** package 'rmarkdown' successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error: unexpected symbol in "tools:::makeLazyLoading("rmarkdown", "C:/Users/Harry Lu's X1/Documents/R/win-library/3.6/00LOCK-rmarkdown/00new", keep.source = FALSE, keep.parse.data = FALSE, set.install.dir = 'C:/Users/Harr"
Execution halted
ERROR: lazy loading failed for package 'rmarkdown'
* removing 'C:/Users/Harry Lu's X1/Documents/R/win-library/3.6/rmarkdown'
Warning in install.packages :
installation of package ‘rmarkdown’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\Harry Lu's X1\AppData\Local\Temp\RtmpKKU6u3\downloaded_packages’
Note: I have installed the Rtools35 already.
Someone please help! I cannot click the Knit button right now.