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

EAPI=7

inherit R-packages

DESCRIPTION='MCMC Generalised Linear Mixed Models'
KEYWORDS="~amd64"
SRC_URI="http://cran.r-project.org/src/contrib/MCMCglmm_2.35.tar.gz"
LICENSE='GPL-2+'

IUSE="${IUSE-} r_suggests_bayesm r_suggests_combinat r_suggests_mcmcpack
	r_suggests_msm r_suggests_mvtnorm r_suggests_orthopolynom
	r_suggests_rgl"
R_SUGGESTS="
	r_suggests_bayesm? ( sci-CRAN/bayesm )
	r_suggests_combinat? ( sci-CRAN/combinat )
	r_suggests_mcmcpack? ( sci-CRAN/MCMCpack )
	r_suggests_msm? ( sci-CRAN/msm )
	r_suggests_mvtnorm? ( sci-CRAN/mvtnorm )
	r_suggests_orthopolynom? ( sci-CRAN/orthopolynom )
	r_suggests_rgl? ( sci-CRAN/rgl )
"
DEPEND="virtual/Matrix
	sci-CRAN/coda
	sci-CRAN/corpcor
	sci-CRAN/cubature
	sci-CRAN/ape
	sci-CRAN/tensorA
"
RDEPEND="${DEPEND-} ${R_SUGGESTS-}"