R data.entry 不适用于 OS X El Capitan
R data.entry is not working on OS X El Capitan
当我使用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.
您需要 X11 支持才能使用此功能。重新安装 R:
brew reinstall r --with-x11
然后它应该会按预期工作。
从 RStudio 安装 'R' 帮助我解决了这个问题。我使用 brew 安装了 'R',因此首先使用命令-
卸载了 'R'
Atuls-MacBook-Pro:~ atulkaushik$ brew uninstall r
然后从 RStudio 下载了合适的包 'R-x.y.z.pkg'。虽然,这一步帮助了我 运行 x11() 在终端上,但我仍然无法使用此功能执行操作。
m=matrix(1:81,9,9)
data.entry(m)
Error in .External2(C_dataentry, data, modes) :
unable to start data editor
In addition: Warning messages:
1: In dataentry(odata, as.list(Modes)) :
locale not supported by Xlib: some X ops will operate in C locale
2: In dataentry(odata, as.list(Modes)) : X cannot set locale modifiers
3: In dataentry(odata, as.list(Modes)) :
unable to create fontset --fixed-medium-r----120------
我没有通过命令 'r' 调用 r shell,而是使用了 LC_CTYPE=C R 命令
Atuls-MacBook-Pro:~ atulkaushik$ LC_CTYPE=C R
现在,当我执行
data.entry(m)
系统会打开一个 XQuartz window like -
当我使用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.
您需要 X11 支持才能使用此功能。重新安装 R:
brew reinstall r --with-x11
然后它应该会按预期工作。
从 RStudio 安装 'R' 帮助我解决了这个问题。我使用 brew 安装了 'R',因此首先使用命令-
卸载了 'R'Atuls-MacBook-Pro:~ atulkaushik$ brew uninstall r
然后从 RStudio 下载了合适的包 'R-x.y.z.pkg'。虽然,这一步帮助了我 运行 x11() 在终端上,但我仍然无法使用此功能执行操作。
m=matrix(1:81,9,9) data.entry(m) Error in .External2(C_dataentry, data, modes) : unable to start data editor In addition: Warning messages: 1: In dataentry(odata, as.list(Modes)) : locale not supported by Xlib: some X ops will operate in C locale 2: In dataentry(odata, as.list(Modes)) : X cannot set locale modifiers 3: In dataentry(odata, as.list(Modes)) : unable to create fontset --fixed-medium-r----120------
我没有通过命令 'r' 调用 r shell,而是使用了 LC_CTYPE=C R 命令
Atuls-MacBook-Pro:~ atulkaushik$ LC_CTYPE=C R
现在,当我执行
data.entry(m)
系统会打开一个 XQuartz window like -