[英]Install package “locClass” in R
I want to install a package named "locClass" in R but always failed and kept getting the following warning: 我想在R中安装一个名为“ locClass”的软件包,但始终失败,并不断收到以下警告:
install.packages("locClass", repos="http://download.r-forge.r-project.org/") install.packages(“ locClass”,repos =“ http://download.r-forge.r-project.org/”)
Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘locClass’
These will not be installed
The install command is referred to: https://r-forge.r-project.org/R/?group_id=1187 请参考以下安装命令: https : //r-forge.r-project.org/R/?group_id=1187
Also, I downloaded the package source from the above website. 另外,我从上述网站下载了软件包源。 But R returned the following: 但是R返回了以下内容:
library(locClass) 库(locClass)
Error in library(locClass) : ‘locClass’ is not a valid installed package
My R version is 3.3.3. 我的R版本是3.3.3。 I tried the 3.4.0 but failed the same way. 我尝试了3.4.0,但以相同的方式失败了。
This is not exactly a solution but an alternative to utilize functionality of package locClass . 这不完全是一种解决方案,而是利用locClass软件包功能的替代方法。 Download the package file of locClass from here and source(functions.R)
present here . 从下载locClass的包文件位置和source(functions.R)
目前在这里 。 This way you can use all functions available in package. 这样,您可以使用软件包中提供的所有功能。
Note : function.R
means FLXMCL.R
, FLXMCLconstant.R
etc. 注意: function.R
表示FLXMCL.R
, FLXMCLconstant.R
等。
I'm still looking for a better solution but this is a temporary alternative. 我仍在寻找更好的解决方案,但这是一个临时选择。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.