[R] R을 위한 TextMate 세팅 (Mac)

참고 : http://man ··· _bundles 및 트러블 슈팅 페이지들...

Snow Leopard 기준

1. Mac OS X install disk : optional installs- X11 추가 설치

2.DVD에 포함된 Xcode도 추가 설치

3. MacPort : http://mac ··· tall.php 다운로드

4. sudo port -v selfupdate (자동 최신버전으로 업뎃)

5. sudo port install subversion

6. 안되면 macport 다시 설치해보길..

(1->2->3 순서를 맞춰야 할듯 혹은 terminal 종료후 다시 실행해야 xcode와 x11이 적용되는 듯)

7. 아래는 무슨소리인지 몰라서
export LC_CTYPE=en_US.UTF-8 를 그냥 쉘에서 쳐줬음
이걸 파일내에다가 넣으라는 얘기인데 이것만 쉘에서 쳐줬는데 무사히 설치된거 보니까
딱히 중요한 내용은 아닌듯.
======================
5.7.2 Setting LC_CTYPE

You must set the LC_CTYPE variable to use UTF-8. If you do not, svn will give you an svn: Can't recode string error when it stumbles upon non-ASCII filenames (some of the bundle items use these).

If you are using bash you should put this in your ~/.bash_profile (or a similar file which gets sourced when you open a terminal):

export LC_CTYPE=en_US.UTF-8

Users of zsh should put it in ~/.zshrc and tcsh users should instead put this line in their ~/.tcshrc:

setenv LC_CTYPE en_US.UTF-8

Remember that after adding this, you need to start a new shell for the updated profile to take effect.
====================


8. Haskell이라는 번들을 예시로 듦. http://svn ··· ndles%2F에서 목록 확인

mkdir -p /Library/Application\ Support/TextMate/Bundles
cd /Library/Application\ Support/TextMate/Bundles
svn co http://svn.textmate.org/trunk/Bundles/Haskell.tmbundle

따라서 Haskell.tmbundle 대신 R.tmbundle로 바꿔주면 되는 것.

9. svn up *.tmbundle

10. osascript -e 'tell app "TextMate" to reload bundles' 로 하면 TextMate 실행되면서 Bundle 메뉴에 R이 포함되는 것을 확인

11. 세팅 완료~

---20100123 추가

12. Textmate 폰트 문제 및 R gui에서 저장한 파일의 한글 깨짐현상 발생
==> aqua emacs설치하니까 잘 보이고, R script도 지원해줌
Textmate 갖다 버리자..-_-

"Informatics" 분류의 다른 글

R for Mac2010/02/02
[R] 몫과 나머지2009/11/22
[R] 정적 변수 선언2009/11/20
2010/01/19 23:04 2010/01/19 23:04
JUNN
tags : 이올린 태그검색올블로그 태그검색티스토리 태그검색, 이올린 태그검색올블로그 태그검색티스토리 태그검색, 이올린 태그검색올블로그 태그검색티스토리 태그검색, 이올린 태그검색올블로그 태그검색티스토리 태그검색
Informatics 2010/01/19 23:04

트랙백 주소 : http://www.junn.net/tt/trackback/373

댓글을 달아 주세요

[로그인][오픈아이디란?]

Powerd by Textcube,designed by criuce, Revised by JUNN