当我使用R语言时,我不能使用数据输入:
$ R
> cheese = c(1,2,3)
> data.entry(cheese)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool: can't open file: /usr/local/Cellar/r/3.2.2_1/R.framework/Resources/modules/R_de.so (No such file or directory)
Error in dataentry(odata, as.list(Modes)) : X11 is not available
In addition: Warning message:
running command ''/usr/bin/otool' -L '/usr/local/Cellar/r/3.2.2_1/R.framework/Resources/modules/R_de.so'' had status 1但是我安装了X11,XQuartz 2.7.7。
发布于 2015-10-14 13:52:31
您需要X11支持才能使用此函数。用以下方式重新安装R:
brew reinstall r --with-x11然后,它应如预期的那样起作用。
发布于 2017-08-02 22:13:52
从RStudio安装“R”帮助我解决了这个问题。我用brew安装了R,所以首先用命令卸载了R-
:~ atulkaushik$ brew卸载r
然后从RStudio下载相应的软件包“R-x.y.z.pkg”。尽管这个步骤帮助我在终端上运行x11(),但我仍然无法使用该函数执行操作。
M=matrix( 1: 81,9) data.entry(m)错误(C_dataentry,data,.External2):无法启动数据编辑器:警告消息:1:在数据条目中(odata,as.list(模式)):不受Xlib支持的区域设置:某些X ops将在C语言环境中操作2:在数据条目中(odata,as.list(模式)):X无法设置区域设置修饰符3:在数据条目(odata,odata,As.list(模式):无法创建固定媒体--r--120
我没有通过命令'r‘调用instead,而是使用了LC_CTYPE=C R命令
:~ atulkaushik$ LC_CTYPE=C R
现在,当我执行
data.entry(m)
系统将打开一个XQuartz窗口,类似于-

https://stackoverflow.com/questions/32847153
复制相似问题