I have been trying to knit to pdf or word and i keep getting a message that markdown, stringr and rmarkdown need to be updated. I have tried install all of them, and only markdown will install.
I have the newest version of R and last week was able to knit. Please help, as i am so incredibly frustrated. Many thanks!!!!
I'm unable to paste the entire error message with links.
install.packages("stringr")
also installing the dependencies ‘cli’, ‘glue’, ‘lifecycle’, ‘rlang’
There are binary versions available but the source versions are later:
binary source needs_compilation
cli 2.5.0 3.6.1 TRUE
glue 1.4.2 1.6.2 TRUE
lifecycle 1.0.0 1.0.4 FALSE
rlang 0.4.11 1.1.2 TRUE
stringr 1.4.0 1.5.0 FALSE
package ‘cli’ successfully unpacked and MD5 sums checked
package ‘glue’ successfully unpacked and MD5 sums checked
package ‘rlang’ successfully unpacked and MD5 sums checked
cran.rstudio.com/src/contrib/stringr_1.5.0.tar.gz'
Content type 'application/x-gzip' length 175699 bytes (171 KB)
downloaded 171 KB
- installing source package 'lifecycle' ...
** package 'lifecycle' successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
namespace 'rlang' 0.4.11 is being loaded, but >= 1.1.0 is required
Calls: ... withCallingHandlers -> loadNamespace -> namespaceImport -> loadNamespace
Execution halted
ERROR: lazy loading failed for package 'lifecycle' - removing 'C:/Users/Public/anaconda3/envs/rstudio/lib/R/library/lifecycle'
Warning in install.packages :
installation of package ‘lifecycle’ had non-zero exit status
ERROR: dependency 'lifecycle' is not available for package 'stringr' - removing 'C:/Users/Public/anaconda3/envs/rstudio/lib/R/library/stringr'
Warning in install.packages :
installation of package ‘stringr’ had non-zero exit status