koos808

[R] R 패키지 확인(check)하고 없으면 설치하기 본문

R

[R] R 패키지 확인(check)하고 없으면 설치하기

koos808 2021. 3. 8. 17:54
728x90
반응형
  • 패키지 확인(check)하고 없으면 설치하기
    • requiredPackages = c('lubridate','data.table','dplyr','zoo','ranger','reshape2',
                         'jsonlite','cumstats','stringi')
      for(p in requiredPackages){
        if(!require(p,character.only = TRUE)) install.packages(p)
        library(p,character.only = TRUE)
        }

 

 


 

728x90
반응형
Comments