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

EAPI=8

inherit R-packages

DESCRIPTION='Latent Variable Models'
KEYWORDS="~amd64 ~x64-macos ~arm64-macos"
SRC_URI="http://cran.r-project.org/src/contrib/lava_1.8.0.tar.gz"
LICENSE='GPL-3'

IUSE="${IUSE-} r_suggests_data_table r_suggests_ellipse r_suggests_fields
	r_suggests_geepack r_suggests_graph r_suggests_igraph
	r_suggests_kernsmooth r_suggests_knitr r_suggests_lavasearch2
	r_suggests_lme4 r_suggests_mass r_suggests_matrix r_suggests_mets
	r_suggests_nlme r_suggests_optimx r_suggests_polycor
	r_suggests_quantreg r_suggests_rgl r_suggests_rgraphviz
	r_suggests_rmarkdown r_suggests_targeted r_suggests_testthat
	r_suggests_visnetwork"
R_SUGGESTS="
	r_suggests_data_table? ( sci-CRAN/data_table )
	r_suggests_ellipse? ( sci-CRAN/ellipse )
	r_suggests_fields? ( sci-CRAN/fields )
	r_suggests_geepack? ( sci-CRAN/geepack )
	r_suggests_graph? ( sci-BIOC/graph )
	r_suggests_igraph? ( >=sci-CRAN/igraph-0.6 )
	r_suggests_kernsmooth? ( virtual/KernSmooth )
	r_suggests_knitr? ( sci-CRAN/knitr )
	r_suggests_lavasearch2? ( sci-CRAN/lavaSearch2 )
	r_suggests_lme4? ( >=sci-CRAN/lme4-1.1.35.1 )
	r_suggests_mass? ( virtual/MASS )
	r_suggests_matrix? ( virtual/Matrix )
	r_suggests_mets? ( >=sci-CRAN/mets-1.1 )
	r_suggests_nlme? ( virtual/nlme )
	r_suggests_optimx? ( sci-CRAN/optimx )
	r_suggests_polycor? ( sci-CRAN/polycor )
	r_suggests_quantreg? ( sci-CRAN/quantreg )
	r_suggests_rgl? ( sci-CRAN/rgl )
	r_suggests_rgraphviz? ( sci-BIOC/Rgraphviz )
	r_suggests_rmarkdown? ( sci-CRAN/rmarkdown )
	r_suggests_targeted? ( >=sci-CRAN/targeted-0.4 )
	r_suggests_testthat? ( >=sci-CRAN/testthat-0.11 )
	r_suggests_visnetwork? ( sci-CRAN/visNetwork )
"
DEPEND=">=dev-lang/R-3.0
	virtual/survival
	sci-CRAN/SQUAREM
	sci-CRAN/numDeriv
	sci-CRAN/future_apply
	sci-CRAN/cli
	sci-CRAN/progressr
"
RDEPEND="${DEPEND-} ${R_SUGGESTS-}"