> install.packages("openxlsx")
Installing package into ‘C:/Users/lipeiyang/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
试开URL’https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/4.0/openxlsx_4.2.3.zip'
Content type 'application/zip' length 2757680 bytes (2.6 MB)
downloaded 2.6 MB
package ‘openxlsx’ successfully unpacked and MD5 sums checked
Error in install.packages : ERROR: failed to lock directory ‘C:\Users\lipeiyang\Documents\R\win-library\4.0’ for modifying
Try removing ‘C:\Users\lipeiyang\Documents\R\win-library\4.0/00LOCK’
程序运行过程如下图: