blob: 17dff08db38f94f05ac8cca87086f551da7cc2ac (
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
|
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
# Contributor: sukanka <su975853527@gmail.com>
_pkgname=pema
_pkgver=0.1.5
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="Penalized Meta-Analysis"
arch=(x86_64)
url="https://cran.r-project.org/package=$_pkgname"
license=('GPL-3.0-or-later')
depends=(
onetbb
r-ggplot2
r-rcpp
r-rcppparallel
r-rstan
r-rstantools
r-shiny
r-sn
r-cli
)
makedepends=(
r-bh
r-rcppeigen
r-stanheaders
)
checkdepends=(
r-mice
r-testthat
)
optdepends=(
r-knitr
r-mice
r-rmarkdown
r-testthat
r-webexercises
r-bain
r-metaforest
r-metafor
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('0b7996f1151f4239e5cca9d093d051a7')
b2sums=('a2f821a7376c35cb299be7aef68b7354a4ba65371747457642a0edcb564209ca55c2968ff897451a402a81bf418c8851ea36effb239436b72f4ae4a2faa193ce')
build() {
mkdir build
# compilation needs a lot of memory
MAKEFLAGS+=" -j1"
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"
}
|