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

EAPI=7

inherit R-packages

DESCRIPTION='Random Fields on Metric Graphs'
KEYWORDS="~amd64"
SRC_URI="http://cran.r-project.org/src/contrib/MetricGraph_1.1.1.tar.gz"
LICENSE='GPL-2+'

IUSE="${IUSE-} r_suggests_knitr r_suggests_numderiv r_suggests_optimparallel
	r_suggests_osmdata r_suggests_plotly r_suggests_sn
	r_suggests_testthat r_suggests_tidyr"
R_SUGGESTS="
	r_suggests_knitr? ( sci-CRAN/knitr )
	r_suggests_numderiv? ( sci-CRAN/numDeriv )
	r_suggests_optimparallel? ( sci-CRAN/optimParallel )
	r_suggests_osmdata? ( sci-CRAN/osmdata )
	r_suggests_plotly? ( sci-CRAN/plotly )
	r_suggests_sn? ( sci-CRAN/sn )
	r_suggests_testthat? ( sci-CRAN/testthat )
	r_suggests_tidyr? ( sci-CRAN/tidyr )
"
DEPEND="sci-CRAN/igraph
	sci-CRAN/viridis
	>=sci-CRAN/Rcpp-1.0.5
	virtual/Matrix
	>=dev-lang/R-3.5.0
	sci-CRAN/ggplot2
	sci-CRAN/sp
	sci-CRAN/sf
	>=sci-CRAN/rSPDE-2.3.1
"
RDEPEND="${DEPEND-}
	sci-CRAN/Rcpp
	sci-CRAN/RcppEigen
	${R_SUGGESTS-}
"

_UNRESOLVED_PACKAGES=(
	'INLA (>= 0.0-1468840039)'
	'sci-CRAN/inlabru'
)