%global __brp_check_rpaths %{nil} %global packname fuzzyforest %global packver 1.0.8 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 1.0.8 Release: 3%{?dist}%{?buildtag} Summary: Fuzzy Forests License: GPL-3 URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel >= 3.2.1 Requires: R-core >= 3.2.1 BuildArch: noarch BuildRequires: R-CRAN-randomForest BuildRequires: R-CRAN-foreach BuildRequires: R-CRAN-doParallel BuildRequires: R-parallel BuildRequires: R-CRAN-ggplot2 BuildRequires: R-CRAN-mvtnorm Requires: R-CRAN-randomForest Requires: R-CRAN-foreach Requires: R-CRAN-doParallel Requires: R-parallel Requires: R-CRAN-ggplot2 Requires: R-CRAN-mvtnorm %description Fuzzy forests, a new algorithm based on random forests, is designed to reduce the bias seen in random forest feature selection caused by the presence of correlated features. Fuzzy forests uses recursive feature elimination random forests to select features from separate blocks of correlated features where the correlation within each block of features is high and the correlation between blocks of features is low. One final random forest is fit using the surviving features. This package fits random forests using the 'randomForest' package and allows for easy use of 'WGCNA' to split features into distinct blocks. See D. Conn, Ngun, T., C. Ramirez, and G. Li (2019) for further details. %prep %setup -q -c -n %{packname} find -type f -executable -exec grep -Iq . {} \; -exec sed -i -e '$a\' {} \; %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}