# Copyright 1999-2024 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit R-packages

DESCRIPTION='Super Learner Prediction'
KEYWORDS="~amd64 ~x64-macos ~arm64-macos"
SRC_URI="http://cran.r-project.org/src/contrib/SuperLearner_2.0-29.tar.gz"
LICENSE='GPL-3'

IUSE="${IUSE-} r_suggests_arm r_suggests_biglasso r_suggests_bigmemory
	r_suggests_caret r_suggests_class r_suggests_devtools
	r_suggests_e1071 r_suggests_earth r_suggests_gbm
	r_suggests_genefilter r_suggests_ggplot2 r_suggests_glmnet
	r_suggests_ipred r_suggests_kernelknn r_suggests_kernlab
	r_suggests_knitr r_suggests_lattice r_suggests_logicreg
	r_suggests_mass r_suggests_mlbench r_suggests_nloptr r_suggests_nnet
	r_suggests_party r_suggests_polspline r_suggests_prettydoc
	r_suggests_quadprog r_suggests_randomforest r_suggests_ranger
	r_suggests_rhpcblasctl r_suggests_rmarkdown r_suggests_rocr
	r_suggests_rpart r_suggests_sis r_suggests_speedglm r_suggests_spls
	r_suggests_sva r_suggests_testthat r_suggests_xgboost"
R_SUGGESTS="
	r_suggests_arm? ( sci-CRAN/arm )
	r_suggests_biglasso? ( sci-CRAN/biglasso )
	r_suggests_bigmemory? ( sci-CRAN/bigmemory )
	r_suggests_caret? ( sci-CRAN/caret )
	r_suggests_class? ( virtual/class )
	r_suggests_devtools? ( sci-CRAN/devtools )
	r_suggests_e1071? ( sci-CRAN/e1071 )
	r_suggests_earth? ( sci-CRAN/earth )
	r_suggests_gbm? ( sci-CRAN/gbm )
	r_suggests_genefilter? ( sci-BIOC/genefilter )
	r_suggests_ggplot2? ( sci-CRAN/ggplot2 )
	r_suggests_glmnet? ( sci-CRAN/glmnet )
	r_suggests_ipred? ( sci-CRAN/ipred )
	r_suggests_kernelknn? ( sci-CRAN/KernelKnn )
	r_suggests_kernlab? ( sci-CRAN/kernlab )
	r_suggests_knitr? ( sci-CRAN/knitr )
	r_suggests_lattice? ( virtual/lattice )
	r_suggests_logicreg? ( sci-CRAN/LogicReg )
	r_suggests_mass? ( virtual/MASS )
	r_suggests_mlbench? ( sci-CRAN/mlbench )
	r_suggests_nloptr? ( sci-CRAN/nloptr )
	r_suggests_nnet? ( virtual/nnet )
	r_suggests_party? ( sci-CRAN/party )
	r_suggests_polspline? ( sci-CRAN/polspline )
	r_suggests_prettydoc? ( sci-CRAN/prettydoc )
	r_suggests_quadprog? ( sci-CRAN/quadprog )
	r_suggests_randomforest? ( sci-CRAN/randomForest )
	r_suggests_ranger? ( sci-CRAN/ranger )
	r_suggests_rhpcblasctl? ( sci-CRAN/RhpcBLASctl )
	r_suggests_rmarkdown? ( sci-CRAN/rmarkdown )
	r_suggests_rocr? ( sci-CRAN/ROCR )
	r_suggests_rpart? ( virtual/rpart )
	r_suggests_sis? ( sci-CRAN/SIS )
	r_suggests_speedglm? ( sci-CRAN/speedglm )
	r_suggests_spls? ( sci-CRAN/spls )
	r_suggests_sva? ( sci-BIOC/sva )
	r_suggests_testthat? ( sci-CRAN/testthat )
	r_suggests_xgboost? ( >=sci-CRAN/xgboost-0.6 )
"
DEPEND="sci-CRAN/cvAUC
	sci-CRAN/nnls
	>=sci-CRAN/gam-1.15
	>=dev-lang/R-2.14.0
"
RDEPEND="${DEPEND-} ${R_SUGGESTS-}"