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

EAPI=8

inherit R-packages

DESCRIPTION='Create Interactive Web Graphics via plotly.js'
KEYWORDS="~amd64 ~x64-macos ~arm64-macos"
SRC_URI="http://cran.r-project.org/src/contrib/plotly_4.10.3.tar.gz"
LICENSE='MIT'

IUSE="${IUSE-} r_suggests_broom r_suggests_cairo r_suggests_curl
	r_suggests_dendextend r_suggests_forcats r_suggests_ggalluvial
	r_suggests_ggally r_suggests_ggthemes r_suggests_hexbin
	r_suggests_irdisplay r_suggests_knitr r_suggests_listviewer
	r_suggests_maps r_suggests_mass r_suggests_palmerpenguins
	r_suggests_plotlygeoassets r_suggests_png r_suggests_processx
	r_suggests_reticulate r_suggests_rmarkdown r_suggests_rversions
	r_suggests_sf r_suggests_shiny r_suggests_testthat r_suggests_withr"
R_SUGGESTS="
	r_suggests_broom? ( sci-CRAN/broom )
	r_suggests_cairo? ( sci-CRAN/Cairo )
	r_suggests_curl? ( sci-CRAN/curl )
	r_suggests_dendextend? ( sci-CRAN/dendextend )
	r_suggests_forcats? ( sci-CRAN/forcats )
	r_suggests_ggalluvial? ( sci-CRAN/ggalluvial )
	r_suggests_ggally? ( sci-CRAN/GGally )
	r_suggests_ggthemes? ( sci-CRAN/ggthemes )
	r_suggests_hexbin? ( sci-CRAN/hexbin )
	r_suggests_irdisplay? ( sci-CRAN/IRdisplay )
	r_suggests_knitr? ( sci-CRAN/knitr )
	r_suggests_listviewer? ( sci-CRAN/listviewer )
	r_suggests_maps? ( sci-CRAN/maps )
	r_suggests_mass? ( virtual/MASS )
	r_suggests_palmerpenguins? ( sci-CRAN/palmerpenguins )
	r_suggests_plotlygeoassets? ( sci-CRAN/plotlyGeoAssets )
	r_suggests_png? ( sci-CRAN/png )
	r_suggests_processx? ( sci-CRAN/processx )
	r_suggests_reticulate? ( sci-CRAN/reticulate )
	r_suggests_rmarkdown? ( sci-CRAN/rmarkdown )
	r_suggests_rversions? ( sci-CRAN/rversions )
	r_suggests_sf? ( sci-CRAN/sf )
	r_suggests_shiny? ( >=sci-CRAN/shiny-1.1.0 )
	r_suggests_testthat? ( sci-CRAN/testthat )
	r_suggests_withr? ( sci-CRAN/withr )
"
DEPEND="sci-CRAN/scales
	>=sci-CRAN/htmltools-0.3.6
	sci-CRAN/promises
	>=sci-CRAN/httr-1.3.0
	sci-CRAN/digest
	>=sci-CRAN/jsonlite-1.6
	sci-CRAN/magrittr
	sci-CRAN/vctrs
	sci-CRAN/data_table
	>=sci-CRAN/htmlwidgets-1.5.2.9001
	>=sci-CRAN/rlang-0.4.10
	>=sci-CRAN/tidyr-1.0.0
	sci-CRAN/RColorBrewer
	sci-CRAN/purrr
	>=sci-CRAN/ggplot2-3.0.0
	sci-CRAN/dplyr
	>=sci-CRAN/lazyeval-0.2.0
	>=dev-lang/R-3.2.0
	sci-CRAN/viridisLite
	sci-CRAN/base64enc
	sci-CRAN/tibble
	sci-CRAN/crosstalk
"
RDEPEND="${DEPEND-} ${R_SUGGESTS-}"

_UNRESOLVED_PACKAGES=(
	'>=sci-CRAN/shinytest-1.3.0'
	'sci-CRAN/rsvg'
	'sci-CRAN/webshot'
)