본문 바로가기
R

[R프로그래밍] 초기 패키지 세팅

by 퍼포먼스마케팅코더 2017. 2. 6.
반응형

R 프로그램 초기 기본 설정값 세팅


경로:C:\Program Files\R\R-3.3.1\etc\Rprofile.site


# Things you might want to change



# options(papersize="a4")


# options(editor="notepad")


# options(pager="internal")


# set the default help type


# options(help_type="text")

  options(help_type="html")



# set a site library


# .Library.site <- file.path(chartr("\\", "/", R.home()), "site-library")



# set a CRAN mirror


# local({r <- getOption("repos")


#       r["CRAN"] <- "http://my.local.cran"


#       options(repos=r)})



# Give a fortune cookie, but only to interactive sessions


# (This would need the fortunes package to be installed.)


#  if (interactive()) 


#    fortunes::fortune()



# General options

options(tab.width = 2)

options(width = 130)

options(graphics.record=TRUE)

.First <- function(){

library(KoNLP)

library(googleVis)

library(tm)

library(wordcloud)

library(plyr)

library(ggplot2)

library(scales)

library(reshape2)

library(foreach)

library(rpart)

library(partykit)

library(randomForest)

library(caret)

library(ykmeans)

library(stringi)

library(slam)

library(survival)

library(nlme)

library(mgcv)

library(stringr)

library(lubridate)

library(XLConnect)

library(readxl)

library(dplyr)


cat("\nWelcome at", date(), "\n")

}


.Last <- function(){

cat("\nGoodbye at ", date(), "\n")

}

반응형

댓글