为什么我无法安装 kohonen 软件包 R

时间:2020-12-21 23:54:36

标签: r package cran

我正在 R 中学习机器/深度学习技术,现在正在学习 SOM 我无法使用它,因为它在安装 kohonen 时出现以下错误:

 install.packages("kohonen")

> Warning in install.packages :   unable to access index for repository
> https://cran.rstudio.com/src/contrib:   cannot open destfile
> 'C:\Users\mt4tb\AppData\Local\Temp\Rtmpi6JxwK\file1b885b813f09',
> reason 'No such file or directory' Installing package into
> ‘C:/Users/mt4tb/Documents/R/win-library/4.0’ (as ‘lib’ is unspecified)
> Warning in install.packages :   unable to access index for repository
> https://cran.rstudio.com/src/contrib:   cannot open destfile
> 'C:\Users\mt4tb\AppData\Local\Temp\Rtmpi6JxwK\file1b8822f6544f',
> reason 'No such file or directory' Warning in install.packages :  
> package ‘kohonen’ is not available for this version of R
> 
> A version of this package for your version of R might be available
> elsewhere, see the ideas at
> https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages
> Warning in install.packages :   unable to access index for repository
> https://cran.rstudio.com/bin/windows/contrib/4.0:   cannot open
> destfile
> 'C:\Users\mt4tb\AppData\Local\Temp\Rtmpi6JxwK\file1b886b5a60be',
> reason 'No such file or directory' Error in gzfile(file, mode) :
> cannot open the connection In addition: Warning message: In
> gzfile(file, mode) :   cannot open compressed file
> 'C:\Users\mt4tb\AppData\Local\Temp\Rtmpi6JxwK/libloc_193_f8065c57.rds',
> probable reason 'No such file or directory' Error: no more error
> handlers available (recursive errors?); invoking 'abort' restart

据我所知,这个包似乎没有适用于 R 4.0 的版本,对吗?

我该如何解决?

谢谢

附言

尝试手动下载和安装它返回以下内容:

    > install.packages("C:/Users/mt4tb/Downloads/kohonen_3.0.10.tar.gz", repos = NULL, type = "source")

> Installing package into ‘C:/Users/mt4tb/Documents/R/win-library/4.0’
> (as ‘lib’ is unspecified)
> * installing *source* package 'kohonen' ...
> ** package 'kohonen' successfully unpacked and MD5 sums checked
> ** using staged installation
> ** libs
> 
> *** arch - i386 Warning in system(cmd) : 'make' not found ERROR: compilation failed for package 'kohonen'
> * removing 'C:/Users/mt4tb/Documents/R/win-library/4.0/kohonen' Warning in install.packages :   installation of package
> ‘C:/Users/mt4tb/Downloads/kohonen_3.0.10.tar.gz’ had non-zero exit
> status Error in gzfile(file, mode) : cannot open the connection In
> addition: Warning message: In gzfile(file, mode) :   cannot open
> compressed file
> 'C:\Users\mt4tb\AppData\Local\Temp\Rtmpi6JxwK/libloc_193_f8065c57.rds',
> probable reason 'No such file or directory' Error: no more error
> handlers available (recursive errors?); invoking 'abort' restart

0 个答案:

没有答案