R install.packages()

1 개요[ | ]

R install.packages()
  • 패키지를 설치하는 R 함수
install.packages("패키지명")
install.packages(c("패키지명1","패키지명2","패키지명3"))

2 예시 1: 1개[ | ]

install.packages("party")
#...
#also installing the dependencies ‘TH.data’, ‘libcoin’, ‘matrixStats’, ‘multcomp’, ‘mvtnorm’, ‘modeltools’, ‘strucchange’, ‘coin’, ‘zoo’, ‘sandwich’
#
#trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/TH.data_1.0-10.zip'
#Content type 'application/zip' length 8487066 bytes (8.1 MB)
#downloaded 8.1 MB
#
#trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/libcoin_1.0-4.zip'
#Content type 'application/zip' length 792829 bytes (774 KB)
#downloaded 774 KB
#
#trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/matrixStats_0.54.0.zip'
#Content type 'application/zip' length 1634040 bytes (1.6 MB)
#downloaded 1.6 MB
#
#trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/multcomp_1.4-10.zip'
#Content type 'application/zip' length 728331 bytes (711 KB)
#downloaded 711 KB
#
#trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/mvtnorm_1.0-10.zip'
#Content type 'application/zip' length 270769 bytes (264 KB)
#downloaded 264 KB
#
#trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/modeltools_0.2-22.zip'
#Content type 'application/zip' length 204040 bytes (199 KB)
#downloaded 199 KB
#
#trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/strucchange_1.5-1.zip'
#Content type 'application/zip' length 953025 bytes (930 KB)
#downloaded 930 KB
#
#trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/coin_1.3-0.zip'
#Content type 'application/zip' length 2028539 bytes (1.9 MB)
#downloaded 1.9 MB
#
#trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/zoo_1.8-5.zip'
#Content type 'application/zip' length 1097105 bytes (1.0 MB)
#downloaded 1.0 MB
#
#trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/sandwich_2.5-1.zip'
#Content type 'application/zip' length 1379655 bytes (1.3 MB)
#downloaded 1.3 MB
#
#trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/party_1.3-3.zip'
#Content type 'application/zip' length 897561 bytes (876 KB)
#downloaded 876 KB
#
#package ‘TH.data’ successfully unpacked and MD5 sums checked
#package ‘libcoin’ successfully unpacked and MD5 sums checked
#package ‘matrixStats’ successfully unpacked and MD5 sums checked
#package ‘multcomp’ successfully unpacked and MD5 sums checked
#package ‘mvtnorm’ successfully unpacked and MD5 sums checked
#package ‘modeltools’ successfully unpacked and MD5 sums checked
#package ‘strucchange’ successfully unpacked and MD5 sums checked
#package ‘coin’ successfully unpacked and MD5 sums checked
#package ‘zoo’ successfully unpacked and MD5 sums checked
#package ‘sandwich’ successfully unpacked and MD5 sums checked
#package ‘party’ successfully unpacked and MD5 sums checked
#
#The downloaded binary packages are in
#	C:\Users\testuser\AppData\Local\Temp\RtmpctVsBo\downloaded_packages

3 예시 2: 여러 개[ | ]

install.packages(c("ncdf4", "RNetCDF"))
#...
#trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/ncdf4_1.16.1.zip'
#Content type 'application/zip' length 2598248 bytes (2.5 MB)
#downloaded 2.5 MB
#
#trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/RNetCDF_1.9-1.zip'
#Content type 'application/zip' length 3394285 bytes (3.2 MB)
#downloaded 3.2 MB
#
#package ‘ncdf4’ successfully unpacked and MD5 sums checked
#package ‘RNetCDF’ successfully unpacked and MD5 sums checked
#
#The downloaded binary packages are in
#	C:\Users\testuser\AppData\Local\Temp\RtmpctVsBo\downloaded_packages

4 같이 보기[ | ]

5 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}