R 통계 분석 설치 가이드 (선택 사항)

R 통계 분석

R 통계 분석 결과를 서버에서 연동하여 결과를 테이블 형태 혹은 SVG 벡터 이미지 형태로 출력하는 기능을 제공하고 있다. 솔류션의 R 통계 분석 연동은 다음의 장점을 가지고 있다.

  • 클라이언트 R 통계 분석의 서버 연동을 통해 복수의 사용자가 강력한 통계 분석 결과를 공유할 수 있습니다.
  • 솔류션에서 제공하는 데이터 필터 기능을 사용하여 데이터에 대한 변환을 자유롭게 변경하여 사용할 수 있습니다.
  • R 스크립트를 템플릿화하는 기능을 제공하여 다양한 사용자가 통계 분석에 활용 할 수 있습니다.
  • SVG 벡터 그래픽으로 출력을 제공하여 데이터 시각화를 위한 기본 이미지로 활용할 수 있습니다.
  • R 의 복수 그래픽 출력 기능을 지원합니다.

   

R 서브 설치

R 클라이언트 프로그램 설치

Download and install R client program on the following URL:

R Statistics Project website : http://cran.r-project.org

Install R Server Module

Open R command prompt and install module for server service. The command on prompt is as follows:

R CMD INSTALL Rserve

 

Or on the R prompt type following commands to install Rserve module.

R> install.packages("Rserve");
R> q();

 

Install Interface and Output module

   Download and install amplixplot_0.5-0.tar.

   On R prompt type following command.

R CMD INSTALL amplixpplot_0.5.-0.tar

 

   Check console to find any errors on this step.

Running R Serve module

Start background Rserve module to serve on web service.

On R command prompt

cmd> R CMD Rserve

 

On R prompt windows

R> library(Rserve);
R> Rserve();

 

DO NOT close R serve screen.

 

Asian locale support on Rserve

Asian character need to execute following steps to proper encode text to UTF8.

Follow following steps to service Rserve with UTF8 encoding.

> getOption("encoding");

[1] "native.enc"

If the output is *native.enc*, then type following command to change encode to UTF8

> options(encoding="utf8");

To check configuration option, type following command.

> getOption("encoding");

[1] "utf8"

Followng start Rserve with UTF-8 enabled options.

> library(Rserve);
> Rserve(args="--RS-encoding utf8");

Starting Rserve...

"c:\PROGRA~1\R\R-30~1.2\library\Rserve\libs\i386\Rserve.exe" --RS-encoding utf8

> Rserve: Ok, ready to anwswer queries.

 

The following command shows available locales on the system.

Get system locale information

> Sys.getlocale()

[1] "LC_COLLATE=English_United States.1252;LC_CTYPE=English_United States.1252;LC_MONETARY=English_United States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252"

Setting system locale information on UNIX or MacOS

> Sys.setlocale("LC_MESSAGES", 'en_US.UTF-8')