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

EAPI=8

inherit R-packages

DESCRIPTION='Flexible Parametric Survival and... (see metadata)'
KEYWORDS="~amd64 ~x64-macos ~arm64-macos"
SRC_URI="http://cran.r-project.org/src/contrib/flexsurv_2.3.2.tar.gz"
LICENSE='GPL-2+'

IUSE="${IUSE-} r_suggests_broom r_suggests_colorspace r_suggests_covr
	r_suggests_eha r_suggests_flexsurvcure r_suggests_knitr
	r_suggests_lubridate r_suggests_msm r_suggests_rmarkdown
	r_suggests_splines2 r_suggests_survminer r_suggests_testthat
	r_suggests_th_data"
R_SUGGESTS="
	r_suggests_broom? ( sci-CRAN/broom )
	r_suggests_colorspace? ( sci-CRAN/colorspace )
	r_suggests_covr? ( sci-CRAN/covr )
	r_suggests_eha? ( sci-CRAN/eha )
	r_suggests_flexsurvcure? ( sci-CRAN/flexsurvcure )
	r_suggests_knitr? ( sci-CRAN/knitr )
	r_suggests_lubridate? ( sci-CRAN/lubridate )
	r_suggests_msm? ( sci-CRAN/msm )
	r_suggests_rmarkdown? ( sci-CRAN/rmarkdown )
	r_suggests_splines2? ( sci-CRAN/splines2 )
	r_suggests_survminer? ( sci-CRAN/survminer )
	r_suggests_testthat? ( sci-CRAN/testthat )
	r_suggests_th_data? ( sci-CRAN/TH_data )
"
DEPEND="sci-CRAN/purrr
	sci-CRAN/tibble
	sci-CRAN/statmod
	sci-CRAN/rstpm2
	>=sci-CRAN/Rcpp-0.11.5
	virtual/survival
	>=dev-lang/R-2.15.0
	sci-CRAN/magrittr
	>=sci-CRAN/mstate-0.2.10
	virtual/Matrix
	sci-CRAN/tidyselect
	sci-CRAN/assertthat
	sci-CRAN/generics
	sci-CRAN/numDeriv
	sci-CRAN/ggplot2
	sci-CRAN/rlang
	sci-CRAN/deSolve
	sci-CRAN/muhaz
	sci-CRAN/mvtnorm
	sci-CRAN/quadprog
	sci-CRAN/dplyr
	sci-CRAN/tidyr
"
RDEPEND="${DEPEND-}
	sci-CRAN/Rcpp
	${R_SUGGESTS-}
"