Hi I'm new to R studio (need it for a stat class I'm taking). I have a Mac and am trying to download the Rmarkdown package but keep getting this error. If someone could help me that would be great.
Installing 'rmarkdown' for R Markdown... There is a binary version available but the source version is later: binary source needs_compilation rmarkdown 2.3 2.4 FALSE installing the source package ‘rmarkdown’ trying URL 'https://cran.rstudio.com/src/contrib/rmarkdown_2.4.tar.gz' Content type 'application/x-gzip' length 3202546 bytes (3.1 MB) ================================================== downloaded 3.1 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 in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : there is no package called ‘rlang’ Calls: <Anonymous> ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted ERROR: lazy loading failed for package ‘rmarkdown’ * removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/rmarkdown’ The downloaded source packages are in ‘/private/var/folders/jl/jwj5kppj6cdfw1jfj04433t00000gn/T/RtmpLSTvuj/downloaded_packages’ ✔ Package 'rmarkdown' successfully installed. Warning message: In utils::install.packages("rmarkdown", repos = "https://cran.rstudio.com/") : installation of package ‘rmarkdown’ had non-zero exit status