Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/326.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2012/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用支持java的自制软件安装R_Java_R_Osx Lion_Homebrew - Fatal编程技术网

使用支持java的自制软件安装R

使用支持java的自制软件安装R,java,r,osx-lion,homebrew,Java,R,Osx Lion,Homebrew,我一直试图用自制软件安装R语言,但当我安装像iplots这样的java软件包时,我遇到了以下错误: * installing *source* package ‘iplots’ ... ** R ** inst ** preparing package for lazy loading ** help *** installing help indices ** building package indices ... ** testing if installed package can be

我一直试图用自制软件安装R语言,但当我安装像iplots这样的java软件包时,我遇到了以下错误:

* 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
我被告知R需要使用以下命令安装
NOAWT=1 R CMD INSTALL…
我不完全确定如何使用自制软件完成此操作

我尝试使用这个
brew安装r--NOAWT=1
,但没有成功


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

如果您从自制软件安装R,R将从源代码编译。要在出现此错误的地方安装类似iplots的软件,需要从R控制台使用以下命令:

Sys.setenv(NOAWT=1)
您可能需要删除此后记,在这种情况下,您可以使用此后记:

Sys.unsetenv("NOAWT")

离题;不是关于编程的问题;可能属于superuser.com。如果您正在对brew安装程序进行黑客攻击/修改,并且出现此错误,则该问题是合适的。