首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用带有java支持的homebrew安装R

使用带有java支持的homebrew安装R
EN

Stack Overflow用户
提问于 2012-02-02 05:17:09
回答 1查看 3.2K关注 0票数 1

我一直在尝试用homebrew安装R语言,但是当我安装像iplots这样的java包时,我得到了以下错误:

代码语言:javascript
复制
* installing *source* package ‘iplots’ ...
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices ...
** testing if installed package can be loaded
Note: On Mac OS X we strongly recommend using iplots from within JGR.
Proceed at your own risk as iplots cannot resolve potential ev.loop deadlocks.
'Yes' is assumed for all dialogs as they cannot be shown without a deadlock,
also ievent.wait() is disabled.
2012-01-29 16:24:57.870 R[29384:c07] Apple AWT Java VM was loaded on first thread -- can't start AWT.
Error : .onLoad failed in loadNamespace() for 'iplots', details:
  call: .jnew("org/rosuda/iplots/Framework")
  error: java.lang.InternalError: Can't start the AWT because Java was started on the first thread.  Make sure StartOnFirstThread is not specified in your application's Info.plist or on the command line
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/Users/User/Library/R/2.14/library/iplots’
Warning in install.packages :
  installation of package ‘iplots’ had non-zero exit status
ERROR: dependency ‘iplots’ is not available for package ‘JGR’
* removing ‘/Users/User/Library/R/2.14/library/JGR’
Warning in install.packages :
  installation of package ‘JGR’ had non-zero exit status

我被告知需要使用以下命令NOAWT=1 R CMD INSTALL ...安装R,我不完全确定如何使用自制软件来完成此操作。

我试着使用这个brew install r --NOAWT=1,但没有成功。

任何帮助都将不胜感激。谢谢。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-02-07 12:10:29

如果你从homebrew安装R,R是从源代码编译的。要在出现此错误的位置安装类似iplots的内容,需要从R控制台使用以下命令:

代码语言:javascript
复制
Sys.setenv(NOAWT=1)

您可能需要删除此后记,在这种情况下,您可以使用以下命令:

代码语言:javascript
复制
Sys.unsetenv("NOAWT")
票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/9103494

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档