blob: b61d2e6b8627e8a0281f6b9ff023299c62263254 (
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
|
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
_pkgname=collapse
_pkgver=2.0.18
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="Advanced and Fast Data Transformation"
arch=(x86_64)
url="https://cran.r-project.org/package=$_pkgname"
license=('GPL-2.0-or-later AND MPL-2.0')
depends=(
r-rcpp
)
checkdepends=(
r-data.table
r-dplyr
r-fixest
r-kit
r-magrittr
r-testthat
)
optdepends=(
r-covr
r-data.table
r-dplyr
r-fastverse
r-fixest
r-ggplot2
r-kit
r-knitr
r-magrittr
r-microbenchmark
r-plm
r-rcpparmadillo
r-rcppeigen
r-rmarkdown
r-scales
r-testthat
r-tibble
r-vars
r-withr
r-xts
r-zoo
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('aaecd9e5d3038cba160783d10af5c501')
b2sums=('26c6baa1ce56c0d0907d3b729d81b5943ef81443ea5e74f8441be453c7e99393715793cc89150d115bba76cab530ee6e3ceba378cc0f3f262d97dc2d88888381')
build() {
mkdir build
R CMD INSTALL -l build "$_pkgname"
}
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"
}
|