blob: 64f6cd8fba3faa200a53ca904e1d19bf9491eef5 (
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
|
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
# Contributor: sukanka <su975853527@gmail.com>
_pkgname=metaBMA
_pkgver=0.6.9
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=3
pkgdesc="Bayesian Model Averaging for Random and Fixed Effects Meta-Analysis"
arch=(x86_64)
url="https://cran.r-project.org/package=$_pkgname"
license=('GPL-3.0-only')
depends=(
onetbb
r-bridgesampling
r-coda
r-laplacesdemon
r-logspline
r-mvtnorm
r-rcpp
r-rcppparallel
r-rstan
r-rstantools
)
makedepends=(
r-bh
r-rcppeigen
r-stanheaders
)
checkdepends=(
r-testthat
)
optdepends=(
r-knitr
r-rmarkdown
r-spelling
r-testthat
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('0eb28a09739c53d68ecd1c72101b5746')
b2sums=('0ceec3ecfba8b3f51b8b8cb1800d70213f355694569483a672d8e24f29f29399ef482f5bdd059f667151b9263f82312ba820e69774007c836ecbb49972dfb813')
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"
}
|