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

EAPI=8

inherit R-packages

DESCRIPTION='Mixed-Effect Models, with or wit... (see metadata)'
KEYWORDS="~amd64 ~x64-macos ~arm64-macos"
SRC_URI="http://cran.r-project.org/src/contrib/spaMM_4.5.0.tar.gz"
LICENSE='CeCILL-2'

IUSE="${IUSE-} r_suggests_agridat r_suggests_blackbox r_suggests_foreach
	r_suggests_future r_suggests_future_apply r_suggests_glpk
	r_suggests_infusion r_suggests_isorix r_suggests_lme4 r_suggests_maps
	r_suggests_multilevel r_suggests_rann r_suggests_rcdd r_suggests_rsae
	r_suggests_rspectra r_suggests_testthat"
R_SUGGESTS="
	r_suggests_agridat? ( sci-CRAN/agridat )
	r_suggests_blackbox? ( >=sci-CRAN/blackbox-1.1.25 )
	r_suggests_foreach? ( sci-CRAN/foreach )
	r_suggests_future? ( sci-CRAN/future )
	r_suggests_future_apply? ( sci-CRAN/future_apply )
	r_suggests_glpk? ( sci-mathematics/glpk )
	r_suggests_infusion? ( >=sci-CRAN/Infusion-1.3.0 )
	r_suggests_isorix? ( >=sci-CRAN/IsoriX-0.8.1 )
	r_suggests_lme4? ( sci-CRAN/lme4 )
	r_suggests_maps? ( sci-CRAN/maps )
	r_suggests_multilevel? ( sci-CRAN/multilevel )
	r_suggests_rann? ( sci-CRAN/RANN )
	r_suggests_rcdd? ( sci-CRAN/rcdd )
	r_suggests_rsae? ( sci-CRAN/rsae )
	r_suggests_rspectra? ( sci-CRAN/RSpectra )
	r_suggests_testthat? ( sci-CRAN/testthat )
"
DEPEND=">=dev-lang/R-3.5.0
	>=sci-CRAN/Rcpp-0.12.10
	sci-CRAN/proxy
	virtual/nlme
	sci-CRAN/minqa
	virtual/MASS
	sci-CRAN/pbapply
	sci-CRAN/crayon
	virtual/Matrix
	virtual/boot
	sci-CRAN/numDeriv
	sci-CRAN/ROI
	sci-CRAN/backports
	>=sci-CRAN/geometry-0.4.0
	sci-CRAN/nloptr
	>=sci-CRAN/gmp-0.6.0
"
RDEPEND="${DEPEND-}
	sci-CRAN/Rcpp
	sci-libs/gsl
	>=sci-CRAN/RcppEigen-0.3.3.5.0
	${R_SUGGESTS-}
"