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
Hi, I tried installing "rlang" but received this error.
installing the source package ‘rlang’
trying URL 'https://cran.rstudio.com/src/contrib/rlang_0.4.8.tar.gz'
Content type 'application/x-gzip' length 847517 bytes (827 KB)
==================================================
downloaded 827 KB
* installing *source* package ‘rlang’ ...
** package ‘rlang’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.
ERROR: compilation failed for package ‘rlang’
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/rlang’
Warning in install.packages :
installation of package ‘rlang’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/jl/jwj5kppj6cdfw1jfj04433t00000gn/T/RtmpCtVdse/downloaded_packages’
I think I am missing developer tools but when I try to install I get this
If your question's been answered (even by you!), would you mind choosing a solution? It helps other people see which questions still need help, or find solutions if they have similar problems. Here’s how to do it: