install.packages("sampling")
# 运行结果:
# 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/Admin/Documents/R/win-library/3.6’
# (as ‘lib’ is unspecified)
# also installing the dependency ‘lpSolve’
#
# 试开URL’https://cran.rstudio.com/bin/windows/contrib/3.6/lpSolve_5.6.15.zip'
# Content type 'application/zip' length 748088 bytes (730 KB)
# downloaded 730 KB
#
# 试开URL’https://cran.rstudio.com/bin/windows/contrib/3.6/sampling_2.8.zip'
# Content type 'application/zip' length 905090 bytes (883 KB)
# downloaded 883 KB
#
# package ‘lpSolve’ successfully unpacked and MD5 sums checked
# package ‘sampling’ successfully unpacked and MD5 sums checked
#
# The downloaded b