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

EAPI=7

inherit R-packages

DESCRIPTION='Google Analytics API into R'
KEYWORDS="~amd64"
SRC_URI="http://cran.r-project.org/src/contrib/googleAnalyticsR_1.1.0.tar.gz"
LICENSE='MIT'

IUSE="${IUSE-} r_suggests_bigqueryr r_suggests_covr r_suggests_formatr
	r_suggests_ganalytics r_suggests_googlecloudstorager
	r_suggests_htmlwidgets r_suggests_knitr r_suggests_lifecycle
	r_suggests_miniui r_suggests_rmarkdown r_suggests_shiny
	r_suggests_testthat"
R_SUGGESTS="
	r_suggests_bigqueryr? ( >=sci-CRAN/bigQueryR-0.3.1 )
	r_suggests_covr? ( sci-CRAN/covr )
	r_suggests_formatr? ( sci-CRAN/formatR )
	r_suggests_ganalytics? ( sci-CRAN/ganalytics )
	r_suggests_googlecloudstorager? ( >=sci-CRAN/googleCloudStorageR-0.2.0 )
	r_suggests_htmlwidgets? ( sci-CRAN/htmlwidgets )
	r_suggests_knitr? ( sci-CRAN/knitr )
	r_suggests_lifecycle? ( >=sci-CRAN/lifecycle-1.0.0 )
	r_suggests_miniui? ( >=sci-CRAN/miniUI-0.1.1 )
	r_suggests_rmarkdown? ( sci-CRAN/rmarkdown )
	r_suggests_shiny? ( >=sci-CRAN/shiny-1.6.0 )
	r_suggests_testthat? ( sci-CRAN/testthat )
"
DEPEND=">=sci-CRAN/jsonlite-1.5
	>=sci-CRAN/magrittr-1.5
	sci-CRAN/memoise
	>=sci-CRAN/rlang-0.4.7
	sci-CRAN/usethis
	>=dev-lang/R-3.3.0
	>=sci-CRAN/googleAuthR-1.4.0
	sci-CRAN/measurementProtocol
	>=sci-CRAN/tidyr-1.0.0
	>=sci-CRAN/cli-2.0.2
	>=sci-CRAN/assertthat-0.2.0
	>=sci-CRAN/httr-1.3.1
	>=sci-CRAN/tibble-2.0.1
	>=sci-CRAN/purrr-0.2.2
	>=sci-CRAN/dplyr-0.8.0
	sci-CRAN/whisker
"
RDEPEND="${DEPEND-} ${R_SUGGESTS-}"