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

EAPI=8

inherit R-packages

DESCRIPTION='Interaction Between R and REDCap'
KEYWORDS="~amd64 ~x64-macos ~arm64-macos"
SRC_URI="http://cran.r-project.org/src/contrib/REDCapR_1.3.0.tar.gz"
LICENSE='MIT'

IUSE="${IUSE-} r_suggests_covr r_suggests_dbi r_suggests_kableextra
	r_suggests_knitr r_suggests_odbc r_suggests_purrr
	r_suggests_rmarkdown r_suggests_sessioninfo r_suggests_spelling
	r_suggests_testthat r_suggests_tidyselect r_suggests_yaml"
R_SUGGESTS="
	r_suggests_covr? ( >=sci-CRAN/covr-3.4 )
	r_suggests_dbi? ( >=sci-CRAN/DBI-1.1 )
	r_suggests_kableextra? ( >=sci-CRAN/kableExtra-1.0 )
	r_suggests_knitr? ( >=sci-CRAN/knitr-1.18 )
	r_suggests_odbc? ( >=sci-CRAN/odbc-1.1.1 )
	r_suggests_purrr? ( >=sci-CRAN/purrr-0.3.4 )
	r_suggests_rmarkdown? ( >=sci-CRAN/rmarkdown-2.0 )
	r_suggests_sessioninfo? ( >=sci-CRAN/sessioninfo-1.1.1 )
	r_suggests_spelling? ( sci-CRAN/spelling )
	r_suggests_testthat? ( >=sci-CRAN/testthat-3.0 )
	r_suggests_tidyselect? ( sci-CRAN/tidyselect )
	r_suggests_yaml? ( sci-CRAN/yaml )
"
DEPEND=">=sci-CRAN/tidyr-1.0
	>=sci-CRAN/dplyr-1.0
	sci-CRAN/jsonlite
	>=sci-CRAN/httr-1.4.0
	>=dev-lang/R-3.5.0
	>=sci-CRAN/checkmate-2.0
	>=sci-CRAN/magrittr-1.5
	>=sci-CRAN/readr-2.0
	>=sci-CRAN/rlang-0.4
	>=sci-CRAN/tibble-2.0
"
RDEPEND="${DEPEND-} ${R_SUGGESTS-}"