关于R语言安装包失败的解决方法

> 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’

程序运行过程如下图:

不知道你这个问题是否已经解决, 如果还没有解决的话:

如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 以帮助更多的人 ^-^