美文网首页R小技巧
为什么我会掉一个坑里两次——【R包安装】

为什么我会掉一个坑里两次——【R包安装】

作者: 呆呱呱 | 来源:发表于2020-12-14 11:16 被阅读0次

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

第一次

image.png
image.png image.png

第二次

image.png image.png
image.png

报错代码

Warning in install.packages(...) :
  'lib = "C:/Program Files/R/R-4.0.2/library"' is not writable

在搜索框中粘贴这行代码,得到如下答案

1. image.png 2. image.png

点进这个链接: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.
  • 网站上对每一行的解释

image.png 后面更改了R包的属性

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

相关文章

  • 为什么我会掉一个坑里两次——【R包安装】

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

  • “意念力”

    某天刷屏刷到一篇文章:人为什么走路会掉进坑里?为什么有人骑车会掉进坑里?…… 文章解释,因为人害怕掉进坑里走路、开...

  • 学习小组Day6笔记-田熙

    学习一个R包 安装R包 如果要安装的R包在CRAN网站,那么输入install.packages(“包”), 如果...

  • 学习小组DAY6--帅炸

    学习R包 安装和加载R包 镜像设置 安装 R包安装命令是install.packages(“包”)或者BiocMa...

  • R语言如何批量安装软件包

    1. 为什么要批量安装R语言包 当你在新的环境下, 安装R语言时,你需要安装很多包,比如tidyverse,比如d...

  • 2019-07-10R包安装

    安装R包的几种方式从CRAN中安装R包 ########安装R包的几种方式############# 修改清华镜像...

  • R包安装、加载与更新

    掌握了R基本的一些概念,今天咱们来简单了解下R包,R包安装、加载与更新 安装R包的几种方式 从CRAN中安装R包 ...

  • 学习R包

    安装和加载R包 1. 镜像设置 2. 安装 R包安装命令是install.packages(“包”) 安装的包...

  • R包的4种安装方式

    R包的4种安装方式 在线安装 安装bioconductor的包 离线安装 命令安装 修改R包的加载路径

  • 常用代码集合

    常规设置 加载包时不要出现冗余信息 设置安装包的镜像网站 保存R数据 安装R包 批量安装R包 PCA作图

网友评论

    本文标题:为什么我会掉一个坑里两次——【R包安装】

    本文链接:https://www.haomeiwen.com/subject/arqvgktx.html