"人不能两次踏进同一条河流"是古希腊哲学家赫拉克利特说的。而我,在R包安装时掉进同一个坑两次
第一次



第二次



报错代码
Warning in install.packages(...) :
'lib = "C:/Program Files/R/R-4.0.2/library"' is not writable
在搜索框中粘贴这行代码,得到如下答案
1.

点进这个链接:https://www.online-tech-tips.com/computer-tips/set-file-folder-permissions-windows/
摘抄解决方法如下:
File and Folder Permissions
- Now that we got all of that out of the way, let’s talk about permissions in Windows. Every file and every folder in Windows has its own set of permissions. Permissions can be broken down into Access Control Lists with users and their corresponding rights. Here is an example with the user list at the top and the rights at the bottom:
- Permissions are also either inherited or not. Normally in Windows, every file or folder gets their permissions from the parent folder. This hierarchy keeps going all the way up to the root of the hard drive. The simplest permissions have at least three users: SYSTEM, currently logged in user account and the Administrators group.
- These permissions usually come from the C:\Users\Username folder on your hard drive. You can access these permissions by right-clicking on a file or folder, choosing Properties and then clicking on the Security tab. To edit permissions for a particular user, click on that user and then click the Edit button.
-
网站上对每一行的解释


Warning in install.packages(...) :
'lib = "C:/Program Files/R/R-4.0.2/library"' is not writable是可能路径有中文,但也有可能是权限的问题哦~~
写下这个笔记是为了激励自己养成记录的习惯,记笔记的过程是总结和记忆,没有记住的话,犯过的错会一而再再而三的重犯,消耗时间和精力~
网友评论