当前位置:网站首页>解决Package is not available (for R ve【PACKAGE ‘XXX’ IS NOT AVAILABLE (FOR R VERSION X.Y.Z)” WARNING?】
解决Package is not available (for R ve【PACKAGE ‘XXX’ IS NOT AVAILABLE (FOR R VERSION X.Y.Z)” WARNING?】
2022-07-28 16:29:00 【皮肤科大白】
解决Package is not available (for R version XXX)?
PACKAGE ‘XXX’ IS NOT AVAILABLE (FOR R VERSION X.Y.Z)” WARNING?
目录
- 更新R(不推荐)
- 更改或指定镜像源
3.源码安装
安装R包时这个错误是经常见到的。我认为有几个方法可解决,记录之。
更新R(不推荐)
简单粗暴的方法就是更新R,但这波及的范围太大了,不到万不得已不建议。更改或指定镜像源
出现这个问题很有可能是你现在用的镜像中未纳入这个包,一是可以多换个源试试。如:
install.packages('package-name',repos='http://cran.us.r-project.org')
或,在Rstudio中可以:
或,命令行可直接指定Rstudio:
install.packages('package_name', dependencies=TRUE, repos='http://cran.rstudio.com/')
3.源码安装
当然,也有可能是版本不兼容了。这时候可直接源码安装,下载具体版本的R包源码。
install.packages("I:/XXXX/XXXXX/XXXXXX/XXXXXXX.tar.gz", repos = NULL, type = "source")
边栏推荐
猜你喜欢

QR code generation of wechat applet with parameters

The browser has no Internet, and wechat can connect to the Internet (solution)

Why do I choose to use go language?

Shell脚本之免交互操作

Verilog daily question (vl26 simple stopwatch)

【CDH】通过 ClouderaManager 配置CDH组件用 prometheus 监控采集JMX信息

AMQP协议详解

数据库优化——深入理解Mysql索引底层数据结构与算法

Management of third-party technical services in product development

漫谈测试平台—平台建设思路(上)
随机推荐
Why do I choose to use go language?
Shell脚本之AWK
Management of third-party technical services in product development
ionic 中遇到的一些东西
ionic中的$ionicPopup连续两个调用alert时需要注意的事项
Can you read the story?
About standard IO buffers
SNAT、DNAT 防火墙规则的备份和还原
Verilog 每日一题 (VL28 加减计数器)
Sed of shell programming
Verilog daily question (simple implementation of VL30 RAM)
Firewalld防护墙
Verilog 每日一题 (VL24 多bit MUX同步器 跨时域输出)
【kibana】问题整理 kibana 7.x No indices match pattern “apm-*“
区分ES6的export与Nodejs的module.exports的区别
MySQL的触发器
The practice of beego framework in goweb development: Section I Introduction to beego framework
数据库优化——深入理解Mysql索引底层数据结构与算法
在airtest中使用ocr反向识别文本内容
深度分享阿里(蚂蚁金服)技术面试流程,附前期准备,学习方向