# Copyright 1999-2023 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.1.3.tar.gz"

IUSE="${IUSE-} r_suggests_arrow 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_rjava r_suggests_rmarkdown r_suggests_rpostgres
	r_suggests_rsqlite r_suggests_sqlrender r_suggests_testthat
	r_suggests_tibble r_suggests_zeallot"
R_SUGGESTS="
	r_suggests_arrow? ( sci-CRAN/arrow )
	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_rjava? ( sci-CRAN/rJava )
	r_suggests_rmarkdown? ( sci-CRAN/rmarkdown )
	r_suggests_rpostgres? ( sci-CRAN/RPostgres )
	r_suggests_rsqlite? ( sci-CRAN/RSQLite )
	r_suggests_sqlrender? ( sci-CRAN/SqlRender )
	r_suggests_testthat? ( >=sci-CRAN/testthat-3.0.0 )
	r_suggests_tibble? ( sci-CRAN/tibble )
	r_suggests_zeallot? ( sci-CRAN/zeallot )
"
DEPEND="sci-CRAN/dbplyr
	sci-CRAN/cli
	sci-CRAN/tidyselect
	>=dev-lang/R-4.0
	sci-CRAN/purrr
	sci-CRAN/waldo
	sci-CRAN/fs
	sci-CRAN/glue
	sci-CRAN/stringr
	sci-CRAN/checkmate
	sci-CRAN/readr
	sci-CRAN/dplyr
	>=sci-CRAN/DBI-0.3.0
	sci-CRAN/lifecycle
	sci-CRAN/jsonlite
	sci-CRAN/generics
	sci-CRAN/withr
	sci-CRAN/pool
	sci-CRAN/rlang
	sci-CRAN/stringi
	sci-CRAN/tidyr
"
RDEPEND="${DEPEND-} ${R_SUGGESTS-}"