我正在尝试安装Tidyverse,但是我无法下载rlang软件包。
我正在使用R版本3.5.3,并且尝试卸载并重新安装R。此外,我尝试单独安装Tidyverse和rlang软件包。
install.packages("tidyverse")
install.packages("rlang", dependencies=TRUE, INSTALL_opts = c('--no-lock'))
使用这两种方法,我都会收到相同的错误消息。
* installing *source* package ‘rlang’ ...
** package ‘rlang’ successfully unpacked and MD5 sums checked
** libs
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
ERROR: compilation failed for package ‘rlang’
* removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/rlang’
Warning in install.packages :
installation of package ‘rlang’ had non-zero exit status
任何想法将不胜感激!