安装impute包失败,报错:package ‘impute’ is not available (for R version 3.6.1)

起因非常复杂,我想装smar的包,然后报错impute包安装失败。然后试图利用install.packages("impute")安装,再次失败,报错:package ‘impute’ is not available (for R version 3.6.1)

【注意】我的R版本好像是3.6.4.

目前在网上找到的方法大多是:
在这里插入图片描述但是我使用的时候发现,依旧报错。
在这里插入图片描述然后在biocunductor的网站上找到了impute的新安装方式(链接:bioconductor):
发现这段代码主要针对3.6以上的R版本

if (!requireNamespace("BiocManager", quietly = TRUE))
    install.packages("BiocManager")

BiocManager::install("impute")

使用之后
在这里插入图片描述注意,如果时间紧张,在update all/some/none那里,最好选n,因为update all真的要好久,久到我读了27页的垃圾书。(不是所有书的问题,是我选的那本书的问题。被名气欺骗了,难过。)

Ref: http://www.bioconductor.org/packages/release/bioc/html/impute.html

发布了22 篇原创文章 · 获赞 3 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/helloworld987456/article/details/105473770