.Rprofile

Published by onesixx on

https://rviews.rstudio.com/2017/04/19/r-for-enterprise-understanding-r-s-startup/
https://support.rstudio.com/hc/en-us/articles/360047157094-Managing-R-with-Rprofile-Renviron-Rprofile-site-Renviron-site-rsession-conf-and-repos-conf

~/.Rprofile

R 환경을 사용자에 맞게 바꾸기 위해, 항상 처음 읽어들이는 HOME (또는 working directory)에서
.Rprofile파일을 찾는다.
홈디렉토리에 ~/.Renviron과 ~/.Rprofile 파일이 있으면 수정하고 없으면 생성한다. (처음엔 없다)

위치

여기서는 예로, ~/.Rprofile 에 R을 시작할때, 매번 사용하게 되는 명령어를 넣어 둔다.

R
ex1
R
ex1
R
ex2

~/.Renviron

R
ex1

Rprofile.site

R: Initialization at Start of an R Session

위치는 R.home()/etc폴더 아래,

R
Shell

모든 사용자의 설정을 변경하려면 /usr/lib/R/etc (/etc/R/) 아래 Renviron, Renviron.site, Rprofile.site을 사용한다.

<참고>

R

scipen : 아주 큰 수나 작은수에 대해서 scientific notation(e+10) 사용하지 않도록

Categories: R Basic

onesixx

Blog Owner

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x