%global __brp_check_rpaths %{nil} %global packname EFS %global packver 1.0.3 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 1.0.3 Release: 3%{?dist}%{?buildtag} Summary: Tool for Ensemble Feature Selection License: GPL (>= 2) URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel Requires: R-core BuildArch: noarch BuildRequires: R-CRAN-party BuildRequires: R-CRAN-pROC BuildRequires: R-CRAN-randomForest BuildRequires: R-CRAN-ROCR BuildRequires: R-grDevices BuildRequires: R-graphics BuildRequires: R-stats BuildRequires: R-utils Requires: R-CRAN-party Requires: R-CRAN-pROC Requires: R-CRAN-randomForest Requires: R-CRAN-ROCR Requires: R-grDevices Requires: R-graphics Requires: R-stats Requires: R-utils %description Provides a function to check the importance of a feature based on a dependent classification variable. An ensemble of feature selection methods is used to determine the normalized importance value of all features. Combining these methods in one function (building the cumulative importance values) provides a stable feature selection tool. This selection can also be viewed in a barplot using the barplot_fs() function and proved using the evaluation function efs_eval(). %prep %setup -q -c -n %{packname} %build %install mkdir -p %{buildroot}%{rlibdir} %{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname} test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so) rm -f %{buildroot}%{rlibdir}/R.css %files %{rlibdir}/%{packname}