R 프로그램은 통계분야에서 널리 사용되고 있는 프로그램입니다.
WCCS Job Scheduler를 이용하여 R 프로그램을 수행하는 방법입니다.

1. R 프로그램은 모든 노드에 설치되어 있고, PATH 설정이 되어 있어야 합니다.

2. R 프로그램의 Batch 작업 안내
   http://bibs.snu.ac.kr/R/bin/windows/base/rw-FAQ.html

   2.12 Can I use R CMD BATCH?
  Yes: use R CMD BATCH --help or ?BATCH for full details.
  You can set also up a batch file using Rterm.exe. A sample batch file might contain (as one line)
     path_to_R\bin\Rterm.exe --no-restore --no-save < %1 > %1.out 2>&1
  The purpose of 2>&1 is to redirect warnings and errors to the same file as normal output, and users of Windows 95/98/ME's default command.com `shell' will need to omit it. (That program has no means to redirect stderr, and Rterm.exe sends warnings and errors to the normal output file on such systems.)

3. Command Line을 이용한 Job Submit 예제

  job submit ^
  /numprocessors:4 ^
  /workdir:\\FileServer\ShareDIR ^
  /stdin:INPUT_FILE.txt ^
  /stdout:OUTPUT_FILE.txt ^
  /stderr:ERROR_FILE.txt ^
  Rterm.exe --no-restore --no-save

'WCCS' 카테고리의 다른 글

run1perNode (WCCS Job Scheduler)  (0) 2009.06.21
When you uninstall MSDE by accident  (0) 2009.06.21

+ Recent posts