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

EAPI=8

inherit R-packages

DESCRIPTION='A Swiss-Army Knife for Data I/O'
KEYWORDS="~amd64 ~x64-macos ~arm64-macos"
SRC_URI="http://cran.r-project.org/src/contrib/rio_1.0.1.tar.gz"
LICENSE='GPL-2'

IUSE="${IUSE-} r_suggests_arrow r_suggests_bit64 r_suggests_clipr
	r_suggests_fst r_suggests_hexview r_suggests_jsonlite
	r_suggests_knitr r_suggests_magrittr r_suggests_pzfx r_suggests_qs
	r_suggests_readods r_suggests_readr r_suggests_rmarkdown
	r_suggests_rmatio r_suggests_testthat r_suggests_xml2 r_suggests_yaml"
R_SUGGESTS="
	r_suggests_arrow? ( >=sci-CRAN/arrow-0.17.0 )
	r_suggests_bit64? ( sci-CRAN/bit64 )
	r_suggests_clipr? ( sci-CRAN/clipr )
	r_suggests_fst? ( sci-CRAN/fst )
	r_suggests_hexview? ( sci-CRAN/hexView )
	r_suggests_jsonlite? ( sci-CRAN/jsonlite )
	r_suggests_knitr? ( sci-CRAN/knitr )
	r_suggests_magrittr? ( sci-CRAN/magrittr )
	r_suggests_pzfx? ( sci-CRAN/pzfx )
	r_suggests_qs? ( sci-CRAN/qs )
	r_suggests_readods? ( >=sci-CRAN/readODS-2.1.0 )
	r_suggests_readr? ( sci-CRAN/readr )
	r_suggests_rmarkdown? ( sci-CRAN/rmarkdown )
	r_suggests_rmatio? ( sci-CRAN/rmatio )
	r_suggests_testthat? ( sci-CRAN/testthat )
	r_suggests_xml2? ( >=sci-CRAN/xml2-1.2.0 )
	r_suggests_yaml? ( sci-CRAN/yaml )
"
DEPEND=">=sci-CRAN/haven-1.1.2
	sci-CRAN/tibble
	sci-CRAN/lifecycle
	>=sci-CRAN/curl-0.6
	sci-CRAN/stringi
	sci-CRAN/R_utils
	>=dev-lang/R-3.6
	virtual/foreign
	>=sci-CRAN/data_table-1.11.2
	>=sci-CRAN/readxl-0.1.1
	sci-CRAN/writexl
"
RDEPEND="${DEPEND-} ${R_SUGGESTS-}"