While trying to knit a markdown file in the posit cloud workspace, it says it requires an updated version of the markdown package. When I tried to update the package, I was getting " installation of package ‘markdown’ had non-zero exit status." I'm still not able to knit the file. Every time I try, it says I need to update rmarkdown.
install.packages("rmarkdown")
Installing package into ‘/cloud/lib/x86_64-pc-linux-gnu-library/3.5’
(as ‘lib’ is unspecified)
trying URL 'http://rspm/default/__linux__/focal/latest/src/contrib/rmarkdown_2.24.tar.gz'
Content type 'application/x-gzip' length 2192010 bytes (2.1 MB)
==================================================
downloaded 2.1 MB
installing source package ‘rmarkdown’ ...
** package ‘rmarkdown’ successfully unpacked and MD5 sums checked
** R
** inst
** byte-compile and prepare package for lazy loading
Error in rbind(info, getNamespaceInfo(env, "S3methods")) :
number of columns of matrices must match (see arg 2)
ERROR: lazy loading failed for package ‘rmarkdown’
restoring previous ‘/cloud/lib/x86_64-pc-linux-gnu-library/3.5/rmarkdown’
Warning in install.packages :
installation of package ‘rmarkdown’ had non-zero exit status
The downloaded source packages are in
‘/tmp/Rtmpr4Qc8k/downloaded_packages’
It seems like your package library contains packages that are not compatible with this version of R. I am not sure how that happened, but you could try to load the dependencies of rmarkdown to see which package it is, and then try to reinstall it, first from rspm, and then from a CRAN mirror.