2012-01-30 2 views
2

JGR을 성공적으로 설치하려고했습니다. 시도 할 때 아래에 오류가 표시됩니다. 나는 R 터미널을 통해서뿐만 아니라 설치하기 위해 JGR-1.6-SL.dmg를 사용해 보았습니다. 그것은 자바 문제처럼 보이지만 그것을 고칠 방법을 모르겠습니다.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 

여기 내 시스템 정보입니다. 감사.

답변

3

iplots 및 JGR 패키지를 소스 (예 : NOAWT=1 R CMD INSTALL ..)로 컴파일하려면 OS X 버전에서 NOAWT=1을 설정해야합니다. 당신이 사제 R에서 R은 소스에서 컴파일 설치하는 경우

JGR/rJava/iplots

+0

:

Sys.setenv(NOAWT=1) 

당신은 당신이 사용할 수있는 경우이 afterwords을 제거해야 할 수 있습니다 : 당신이 R 콘솔에서 다음 명령을 사용하기 위해 필요한이 오류가 iplots 같은 것을 설치하려면 나는 R을 homebrew와 함께 설치했다. 나는 자작과 함께 그것을 어떻게 지정할 지 확신하지 못한다. – yodaisgreen

+0

출시 된 R을 사용하면 삶이 훨씬 쉬워 질지라도 사용하는 R이 무엇인지 알 수 없습니다. 'NOAWT' 환경 변수를 설정하기 만하면됩니다. 당신이하는 일은 전적으로 당신에게 달려 있습니다. 많은 방법이 있습니다. 위의 내용은 제가 사용하는 것입니다. –

+1

BTW : JGR을 공식 바이너리와 함께 사용하는 경우, 전적으로 사용자가 직접해야합니다. 비표준 설정이 근본적으로 다른 경우 런처를 수정하여 비표준 설정과 일치시킬 필요가 있습니다. –

관련 문제