我已经尝试了多种方法在R中安装caret
包。我收到的错误消息如下:
错误:在loadNamespace(j <- i[[1L]],c(lib.loc,.libPaths()),versionCheck = vI[[j]])加载名为‘caret’的软件包或名称空间失败: 没有名为“dimRed”的软件包
当我尝试安装dimRed
时,我会收到以下消息:
Installing package into ‘C:/Users/Thomas/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
Warning in install.packages :
dependency ‘Biobase’ is not available
There is a binary version available but the source version is later:
binary source needs_compilation
dimRed 0.1.0 0.2.1 FALSE
installing the source package ‘dimRed’
trying URL 'https://cran.rstudio.com/src/contrib/dimRed_0.2.1.tar.gz'
Content type 'application/x-gzip' length 363025 bytes (354 KB)
downloaded 354 KB
错误:包'dimRed'所需的依赖包'Biobase'不可用 * 正在删除'C:/Users/Thomas/Documents/R/win-library/3.4/dimRed' In R CMD INSTALL 警告: 运行命令'"C:/PROGRA~1/R/R-34~1.4/bin/x64/R" CMD INSTALL -l "C:\Users\Thomas\Documents\R\win-library\3.4" C:\Users\Thomas\AppData\Local\Temp\RtmpqKhsKn/downloaded_packages/dimRed_0.2.1.tar.gz'时出错,状态为1 警告: 安装包' dimRed'时出现非零的退出状态
下载的源代码包在'C:\Users\Thomas\AppData\Local\Temp\RtmpqKhsKn\downloaded_packages'中。
根据之前的帖子,我已经更新了RStudio。 我尝试了从install_url安装。
欢迎任何建议。
biobase
吗?请参考文档获取安装帮助。 - CIAndrewscaret
所需的某个软件包(它们有很多)确实将dimRed
作为依赖项。我刚刚安装了caret
,在依赖项阶段安装了dimRed
。重新安装可能是浪费时间的建议。(我已经安装了Biobase。) - IRTFMinstall.packages("caret", dependencies = TRUE)
,然后一切都正常了。 - JASC