当前位置:网站首页>[R language] This article solves the problem that the R language package cannot be installed (especially devtools)
[R language] This article solves the problem that the R language package cannot be installed (especially devtools)
2022-08-06 06:32:00 【Smiles send us light o little house】
Motivation
I really want to be tossed to death by the environment configuration of the R language... I use conda management. When downloading the R package, a bunch of errors broke out and everyone was numb.After reading the Internet, there are no good tutorials, so let's write one yourself.
Steps
First of all, it is recommended that you use anaconda to manage your R environment.(nonsense, the Internet says so).The point is, after installing conda, you must set up the bioconda channel, otherwise many packages will not be found.(This part is the hardest hit area for online plagiarism, and they are all copied and pasted directly from others).
- Install anaconda/miniconda.This part is not reflected in this article. Friends who need it are Baidu, and there are many tutorials.I use anaconda (miniconda is a simplified version of anaconda).
- Set bioconda, conda-forge channels.
Why do you want to do this step?Because conda packages will be searched from the channel, if you do not add bioconda and conda-forge channels by default, many Shengxin packages will not be found at all.conda config --add channels defaultsconda config --add channels biocondaconda config --add channels conda-forge - Configure the R locale.
It is recommended to create a new R environment with the following commands, meaning create an environment and install r-base r-essentials r-irkernel.
If you already have an environment, you can use this command directly:conda create -n R r-base=4.1r-essentials r-irkernelconda installr-base=4.1 r-essentials r-irkernel - Install jupyter.
conda install jupyter - You're done
- To install the R package afterwards, it is recommended to install it directly with conda.
For example, to install devtools, use the following command:conda install r-devtools
Reference Links
https://bioconda.github.io/user/install.html
https://stackoverflow.com/questions/58854931/r-not-working-in-anaconda-3-on-mojave
边栏推荐
- pip命令安装工具包时出现ReadTimeoutError或者THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE问题解决
- ELK日志分析系统(一)之ELK原理
- 基于肌电信号(sEMG) 的深度学习手势分类-2
- Talk预告 | 德国马普所修宇亮:如何多快好省地重建三维数字人
- 斐波那契序列,数组排序,在数组中查找对应元素Objects类的equals方法的作用,将26个英文字母用逗号分隔,组成字符串打印出来,矩阵的转置,找出1~1000之间的全部同构数,用随机数生成语句
- 【多传感器融合】卡尔曼滤波
- error: C1083: 无法打开包括文件: “stddef.h”: No such file or directory
- 基于ArcGIS 二次开发 使用技巧总结
- (上)苹果有开源,但又怎样呢?
- CMU联合DeepMind发布”高质量“通用多模态表征框架HighMMT
猜你喜欢

ARM64异常之异常入口和异常返回

【图像处理】RGB、YUV (YCbCr) 图像表示详解

使用Qt XmlStreamWriter写 Plist 文件

GFS分布式文件系统

How to jailbreak the Kindle series 5.12.2.2 ~ 5.14.2 without disassembly?How to install third-party plugins

The six states of a thread

十五、一起学习Lua 协同程序(coroutine)

Cesium 填坑之路

ECCV 2022 | 登顶SemanticKITTI!基于二维先验辅助的激光雷达点云语义分割

新朋老友齐聚首,共话「图形学」未来 | 将门行动派特别直播企划,就在7月6日晚!
随机推荐
ELK日志分析系统(二)之ELK搭建部署
Zero foundation to build their own famine Don 't Starve server, get rid of the online caton and happy friend online
XCode 下载链接
随机森林_R代码及用法
统计字符串中英文字母、空格、数字和其它字符的个数.读取文件中的学生信息,计算出考试的平均分。创建一个Student类的数组,封装5个学生的信息,按指定条件查找学生.计算当前时间距明年春节还有多长时间。
集合应用,产生10000个0-9之间的随机数字,统计每个数字出现的个数。
geoserver 发布 矢量切片(pbf)并用openlayers 6.14 /leaflet 1.8 加载展示 (一)(小白必备:超详细教程)
Qt智能指针
动态规划之跳跃游戏
卷积神经网络手写数字分类
R_文字识别(OCR)
PCL1.12+VTK9.1+QT6编译部署
C语言常用的宏定义
动态规划之最长连续递增序列
外连接,exists存在,(DML):用SQL录入数据,用SQL删除数据,用SQL更新数据
How to jailbreak the Kindle series 5.12.2.2 ~ 5.14.2 without disassembly?How to install third-party plugins
Professional and technical personnel continuing education exam questions
QSpinbox 将中文句号 处理 为英文小数点
Oracle配置st_geometry
【多传感器融合】卡尔曼滤波