我一直在試圖安裝JGR沒有成功。當我嘗試我得到下面發佈的錯誤。我嘗試過使用JGR-1.6-SL.dmg來安裝以及通過R終端。這似乎是一個Java問題,但我不知道如何解決它。無法安裝JGR
這裏是我的系統信息:
OSX 10.7.2
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03-383-11A511)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02-383, mixed mode)
R version 2.14.1 (2011-12-22) (Installed with homebrew)
錯誤:
* 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。我不知道如何用自制軟件來指定。 – yodaisgreen 2012-01-31 05:46:54
它並不是你使用的R(儘管使用發佈的R會讓你的生活變得更容易)。你只需設置'NOAWT'環境變量 - 你是如何做到的,完全取決於你,有很多方法 - 上面是我使用的。 – 2012-01-31 18:10:38
順便說一句:如果你將JGR與官方二進制文件以外的任何東西一起使用,那麼你就完全靠你自己了 - 如果它與根本不同,你甚至可能需要修改啓動器以符合你的非標準設置。 – 2012-01-31 18:12:45