더북(TheBook)

그럼 dplyr 패키지를 설치해 보겠습니다. 패키지 설치, 업데이트, 삭제와 관련한 작업은 RStudio의 콘솔 창에서 진행합니다. RStudio 콘솔 창에 다음과 같이 입력합니다.4

> install.packages("dplyr")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/Rtools/
Installing package into'C:/Users/it/Documents/R/win-library/4.0'
(as'lib' is unspecified)
also installing the dependencies 'assertthat', 'utf8', 'cli', 'crayon', 'fansi', 'pillar', 'pkgconfig', 'purrr', 'digest', 'ellipsis', 'generics', 'glue', 'lifecycle', 'magrittr', 'R6', 'rlang', 'tibble', 'tidyselect', 'vctrs'

... 생략 ...
The downloaded binary packages are in
    C:\Users\Administrator\AppData\Local\Temp\RtmpYzonuA\downloaded_packages

 

그림 5-9 | 콘솔 창에서 패키지를 설치하는 모습

 

 


4 온라인으로 해당 패키지를 내려받는 작업이기 때문에 인터넷에 연결되어 있어야 합니다. 패키지가 이미 설치되어 있더라도 다시 설치하면 재설치됩니다.

신간 소식 구독하기
뉴스레터에 가입하시고 이메일로 신간 소식을 받아 보세요.