When I use R language, I can't use data entry:
$ 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
But I installed X11, XQuartz 2.7.7.
You need X11 support in order to use this function. Reinstall R with:
brew reinstall r --with-x11
It should then work as expected.
Installing 'R' from RStudio helped me in fixing this problem. I had installed 'R' using brew, therefore first uninstalled 'R' using command-
Atuls-MacBook-Pro:~ atulkaushik$ brew uninstall r
Then downloaded the appropriate package 'Rx.yzpkg' from RStudio . Though, this step helped me in running x11() on terminal, I was still not able to perform operations using this function.
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- - - - - -
instead of invoking r shell through command 'r', I used LC_CTYPE=CR command
Atuls-MacBook-Pro:~ atulkaushik$ LC_CTYPE=CR
Now, when I execute
data.entry(m)
System will open a XQuartz window like -
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.