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

EAPI=8

inherit R-packages

DESCRIPTION='Connect to an OMOP Common Data Model'
KEYWORDS="~amd64 ~x64-macos ~arm64-macos"
SRC_URI="http://cran.r-project.org/src/contrib/CDMConnector_1.3.1.tar.gz"

IUSE="${IUSE-} r_suggests_bigrquery r_suggests_covr
	r_suggests_databaseconnector r_suggests_duckdb r_suggests_ggplot2
	r_suggests_knitr r_suggests_lubridate r_suggests_odbc r_suggests_pool
	r_suggests_rjava r_suggests_rmarkdown r_suggests_rpostgres
	r_suggests_rsqlite r_suggests_snakecase r_suggests_sqlrender
	r_suggests_testthat r_suggests_tibble r_suggests_visr"
R_SUGGESTS="
	r_suggests_bigrquery? ( sci-CRAN/bigrquery )
	r_suggests_covr? ( sci-CRAN/covr )
	r_suggests_databaseconnector? ( sci-CRAN/DatabaseConnector )
	r_suggests_duckdb? ( sci-CRAN/duckdb )
	r_suggests_ggplot2? ( sci-CRAN/ggplot2 )
	r_suggests_knitr? ( sci-CRAN/knitr )
	r_suggests_lubridate? ( sci-CRAN/lubridate )
	r_suggests_odbc? ( sci-CRAN/odbc )
	r_suggests_pool? ( sci-CRAN/pool )
	r_suggests_rjava? ( sci-CRAN/rJava )
	r_suggests_rmarkdown? ( sci-CRAN/rmarkdown )
	r_suggests_rpostgres? ( sci-CRAN/RPostgres )
	r_suggests_rsqlite? ( sci-CRAN/RSQLite )
	r_suggests_snakecase? ( sci-CRAN/snakecase )
	r_suggests_sqlrender? ( sci-CRAN/SqlRender )
	r_suggests_testthat? ( >=sci-CRAN/testthat-3.0.0 )
	r_suggests_tibble? ( sci-CRAN/tibble )
	r_suggests_visr? ( sci-CRAN/visR )
"
DEPEND="sci-CRAN/cli
	sci-CRAN/glue
	sci-CRAN/stringr
	sci-CRAN/jsonlite
	sci-CRAN/lifecycle
	sci-CRAN/fs
	>=dev-lang/R-4.0
	sci-CRAN/dplyr
	sci-CRAN/purrr
	sci-CRAN/waldo
	sci-CRAN/generics
	sci-CRAN/checkmate
	>=sci-CRAN/dbplyr-2.4.0
	sci-CRAN/rlang
	>=sci-CRAN/DBI-0.3.0
	>=sci-CRAN/omopgenerics-0.0.2
	sci-CRAN/stringi
	sci-CRAN/tidyselect
	sci-CRAN/readr
	sci-CRAN/withr
	sci-CRAN/tidyr
"
RDEPEND="${DEPEND-} ${R_SUGGESTS-}"