Skip to content

Instantly share code, notes, and snippets.

@healim
Last active July 24, 2018 02:28
Show Gist options
  • Save healim/ad673d7b6ec856af65b7ddf3646c45ad to your computer and use it in GitHub Desktop.
Save healim/ad673d7b6ec856af65b7ddf3646c45ad to your computer and use it in GitHub Desktop.
R Studio 한글 설정 (MAC)

R Studio 한글 설정 (MAC)

R studio에서 한글이 깨져서 찾아봄

localeToCharset()로 확인해보니 아스키로 되어있었다. (default text encoding을 UTF-8로 설정한거랑 무관했음)

터미널에 아래 명령어를 입력하고 재실행하니 해결됨 (실행 경로 상관 없음)

defaults write org.R-project.R force.LANG en_US.UTF-8

이후 localeToCharset() 쳐보면 UTF-8로 나온다.

참고 글

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment