blob: 72933bf42f22c36b9f9d47b6b7610eb0cb0e3f48 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
# Contributor: Guoyi Zhang <guoyizhang at malacology dot net>
# Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
# Contributor: Alex Branham <branham@utexas.edu>
_pkgname=rio
_pkgver=1.0.1
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="A Swiss-Army Knife for Data I/O"
arch=(any)
url="https://cran.r-project.org/package=${_pkgname}"
license=(GPL2)
depends=(
r-curl
r-data.table
r-haven
r-lifecycle
r-r.utils
r-readxl
r-stringi
r-tibble
r-writexl
)
checkdepends=(
r-arrow
r-fst
r-hexview
r-pzfx
r-qs
r-readods
r-testthat
r-xml2
r-yaml
)
optdepends=(
r-arrow
r-bit64
r-clipr
r-fst
r-hexview
r-jsonlite
r-knitr
r-magrittr
r-pzfx
r-qs
r-readods
r-readr
r-rmarkdown
r-rmatio
r-testthat
r-xml2
r-yaml
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('10999152910a11bcccc2b85e78cfda4f')
sha256sums=('754c137c5588870f75665d0acc149f0ef28250edc057d5d4ac6fa25ba9547bee')
build() {
mkdir -p build
R CMD INSTALL "$_pkgname" -l build
}
check() {
cd "$_pkgname/tests"
R_LIBS="$srcdir/build" NOT_CRAN=true Rscript --vanilla testthat.R
}
package() {
install -d "$pkgdir/usr/lib/R/library"
cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library"
}
|