Java와 r (상호 상관 도구 및 다른 통계 함수 중 일부 사용) 사이에서 약간의 작업을 시도하고 JGR
패키지를 사용하려고합니다. 나는 문서를보고 알맞은 시간을 보냈고,이 JGR 패키지가 어떻게 작동하는지 그리고 그 목적이 무엇인지 알아 내는데 어려움을 겪고있다. 몇 가지 질문 :R/JAVA/JGR 어떻게 작동합니까?
1) 실제로 코드를 작성하려면 어떻게해야합니까? Eclipse의 RGUI에서 아직 경험하지 못한 다른 콘솔에서? 내가 RI에 참조 설명서에서 예를 놓으면
> JGR()
Copy the following into WordPad and save as "jgrLaunch.bat"
set R_HOME=C:\PROGRA~1\R\R-214~1.0
set R_LIBS=C:\Users\~\Documents\R\win-library\2.14
set R_LIBS_USER=C:\Users\~\Documents\R\win-library\2.14;C:\Program Files\R\R-2.14.0\library
jgr-1_62.exe --rhome=C:\PROGRA~1\R\R-214~1.0 --libpath=C:\Users\~\Documents\R\win-library\2.14
Starting JGR ...
>
는 다음 얻을 :
나는 JGR 시작하여 시작
> jgr.addMenu("Workspace")
jgr.addMenu() cannot be used outside JGR.
> jgr.addMenuItem("Workspace","Browse","ls()")
jgr.addMenuItem() cannot be used outside JGR.
> jgr.addMenuSeparator("Workspace")
jgr.addMenuSeparator() cannot be used outside JGR.
> jgr.addMenuItem("Workspace","Browse (pos=2)","ls(pos=2)")
jgr.addMenuItem() cannot be used outside JGR.
> menus <- jgr.getMenuNames()
jgr.getMenuNames() cannot be used outside JGR.
> index <- which(menus=="Packages & Data")
> if(length(index)==0) index <- 1
> jgr.insertMenu("User menu",index)
jgr.insertMenu() cannot be used outside JGR.
> jgr.addMenuItem("User menu","A good place for user generated menus is","print(’before Packages & Data’)")
jgr.addMenuItem() cannot be used outside JGR.
을하지만 일식에 넣어 때 <-
같은 것들이있다 어딘가에있는 것처럼 보입니다.
2) 실제 코드가 있습니까? 나는 대개 몇 가지 코드 예제로이 문제를 파악할 수 있지만 어떤 것도 추적 할 수는 없습니다.
3) 더 좋고/쉬울 수있는 방법에 대한 제안 사항 (즉, 다른 패키지 또는 설정)?
제안 사항?
을 논의 할 수있는 장소입니다 stats-rosuda-devel 메일 링리스트에 모습을 가질 수 있지만, 그것은 *의 GUI처럼 보이는 * , 또는 * 그래픽 사용자 인터페이스 *. 즉,'R'을 시작하지 말고 JGR **에 제공된 프로그램을 실행하십시오 **. 그 환경에 있으면'jgr' 함수를 사용할 수 있습니다. – Borealid