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

EAPI=8

inherit R-packages

DESCRIPTION='R Interface to Stan'
KEYWORDS="~amd64 ~x64-macos ~arm64-macos"
SRC_URI="http://cran.r-project.org/src/contrib/rstan_2.32.3.tar.gz"
LICENSE='GPL-3+'

IUSE="${IUSE-} r_suggests_bayesplot r_suggests_coda r_suggests_kernsmooth
	r_suggests_knitr r_suggests_matrix r_suggests_rmarkdown
	r_suggests_rstantools r_suggests_rstudioapi r_suggests_shinystan
	r_suggests_testthat r_suggests_v8"
R_SUGGESTS="
	r_suggests_bayesplot? ( sci-CRAN/bayesplot )
	r_suggests_coda? ( sci-CRAN/coda )
	r_suggests_kernsmooth? ( virtual/KernSmooth )
	r_suggests_knitr? ( sci-CRAN/knitr )
	r_suggests_matrix? ( virtual/Matrix )
	r_suggests_rmarkdown? ( sci-CRAN/rmarkdown )
	r_suggests_rstantools? ( sci-CRAN/rstantools )
	r_suggests_rstudioapi? ( sci-CRAN/rstudioapi )
	r_suggests_shinystan? ( sci-CRAN/shinystan )
	r_suggests_testthat? ( >=sci-CRAN/testthat-3.0.4 )
	r_suggests_v8? ( sci-CRAN/V8 )
"
DEPEND=">=sci-CRAN/Rcpp-1.0.7
	>=sci-CRAN/loo-2.4.1
	>=dev-lang/R-3.4.0
	>=sci-CRAN/gridExtra-2.3
	>=sci-CRAN/inline-0.3.19
	>=sci-CRAN/RcppParallel-5.1.4
	>=sci-CRAN/pkgbuild-1.2.0
	sci-CRAN/QuickJSR
	>=sci-CRAN/ggplot2-3.3.5
"
RDEPEND="${DEPEND-}
	>=sci-CRAN/Rcpp-1.0.7
	>=sci-CRAN/RcppParallel-5.1.4
	>=sci-CRAN/BH-1.75.0.0
	app-text/pandoc
	>=sci-CRAN/RcppEigen-0.3.3.9.3
	${R_SUGGESTS-}
"