メモ:Rprofile

「.rprofile」というテキストファイルを作っておくと毎回起動時に読み込んでくれるので助かります。個人的な設定を記録しておきます。

setwd("C:/Users/.../Dropbox/")

options(repos="http://cran.md.tsukuba.ac.jp")
options(graphics.record=TRUE) 
 
library(plyr)

s <- base::summary
l <- base::library
e <- utils::example
i <- utils::install.packages

end <- function() {
  quit(save="no")
}

これをユーザー直下に置いておくと読み込まれるはずです(windowsはユーザー\マイドキュメンド)。


あと--no-saveを付けて起動すると終了のとき煩わしくない(上のexit()があれば不要)。

http://www.agr.nagoya-u.ac.jp/~seitai/document/R2009/Rsettings.pdf



追記:Macで隠しファイルを表示する方法

表示
defaults write com.apple.finder AppleShowAllFiles -boolean true
killall Finder

非表示
defaults delete com.apple.finder AppleShowAllFiles
killall Finder

ページTOPへ