各位大神帮帮忙,我用的mac系统,在Rstudio中输入以下两行指令,想用edit函数编辑数据框内容,但是程序报错如下,请问是什么原因呢?指令在windows下就能够正常运行,跟系统有关吗?谢谢!
指令:
> mydata <- data.frame(age=numeric(0),gender=character(0),weight=numeric(0))
> mydata <- edit(mydata)
报错内容:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Error in edit.data.frame(mydata) : X11 dataentry cannot be loaded
此外: Warning messages:
1: 运行命令''/usr/bin/otool' -L '/Library/Frameworks/R.framework/Resources/modules/R_de.so''的状态是1
2: In edit.data.frame(mydata) :
无法载入共享目标对象‘/Library/Frameworks/R.framework/Resources/modules//R_de.so’::
dlopen(/Library/Frameworks/R.framework/Resources/modules//R_de.so, 6): Library not loaded: /opt/X11/lib/libSM.6.dylib
Referenced from: /Library/Frameworks/R.framework/Resources/modules//R_de.so
Reason: image not found