> install.packages("rlang")
Package which is only available in source form, and may need
compilation of C/C++/Fortran: ‘rlang’
These will not be installed
安装最新版本的R
看一下是否有如下报错信息
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
ERROR: compilation failed for package ‘rlang’
mac系统下需要安装xcrun的编译环境