2013-02-05 4 views

답변

6

Windows에서 최소한 $R_HOME/etc/Rconsole 구성 파일은 콘솔과 호출기에 대한 많은 선택적 매개 변수를 설정합니다. 다음은 손으로 편집을 할 수있는 기본 글꼴 및 글꼴 크기를 변경하는 부분입니다 :

## Font. 
# Please use only fixed width font. 
# If font=FixedFont the system fixed font is used; in this case 
# points and style are ignored. If font begins with "TT ", only 
# True Type fonts are searched for. 
font = TT Courier New 
points = 10 
style = normal # Style can be normal, bold, italic 

활성 R 세션의 명령 행에서 값을 변경하려면, 당신은 loadRconsole() 기능을 사용할 수 있습니다. 위에 표시된 형식의 지시문이 포함 된 텍스트 파일을 읽음으로써 R이 시작될 때 Rconsole에서 읽은 값을 덮어 씁니다. 예를 들면 다음과 같습니다 :

temp <- tempfile() 
cat("points = 13\n", file = temp) 
cat("style = italic\n", file = temp, append = TRUE) 
loadRconsole(file = temp) 

## And then, to reset to the defaults: 
loadRconsole(file = file.path(R.home(), "etc/Rconsole")) 
+0

'cat'과 같이 'append = TRUE'로 임시 파일을 다시 작성하는 것처럼 보입니다. 감사! –

+0

@KarstenW. - 네, 고마워요. 나는 그것을 프레 젠 테이션을 위해 청소했을 때 그것을 추가하는 것을 잊었다. (단 한 줄의 cat 호출로 테스트했습니다.) –

관련 문제