blob: f130d268221b3bc6c9750e6bd0876f18c49f3cb7 (
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
|
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
_pkgname=DALEX
_pkgver=2.4.3
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=3
pkgdesc="moDel Agnostic Language for Exploration and eXplanation"
arch=(any)
url="https://cran.r-project.org/package=$_pkgname"
license=('GPL-2.0-or-later')
depends=(
r-ggplot2
r-ibreakdown
r-ingredients
)
checkdepends=(
r-caret
r-gower
r-kernlab
r-parsnip
r-randomforest
r-ranger
r-testthat
)
optdepends=(
r-gower
r-ranger
r-testthat
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('eb0756c65611440e8d9a11742d47472f')
b2sums=('a53533fca756a05a4748b6eb3698437c7a64c74c35c3b84cd264a8caa0536428796c1799be8db2865e6f80cc35dc873756712bc19fe492250cf8f22267b8b386')
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"
}
|