blob: fe1c81a9922d4b972db2daea896495cb3630ad99 (
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
|
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
_pkgname=ggstats
_pkgver=0.7.0
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="Extension to 'ggplot2' for Plotting Stats"
arch=(any)
url="https://cran.r-project.org/package=$_pkgname"
license=('GPL-3.0-or-later')
depends=(
r-cli
r-dplyr
r-forcats
r-ggplot2
r-lifecycle
r-patchwork
r-purrr
r-rlang
r-scales
r-stringr
r-tidyr
)
checkdepends=(
r-betareg
r-broom
r-broom.helpers
r-emmeans
r-parameters
r-pscl
r-reshape
r-survey
r-testthat
r-vdiffr
)
optdepends=(
r-betareg
r-broom
r-broom.helpers
r-emmeans
r-glue
r-gtsummary
r-knitr
r-labelled
r-parameters
r-pscl
r-reshape
r-rmarkdown
r-spelling
r-survey
r-testthat
r-vdiffr
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('e76fa807019923764e4732f239a9f18b')
b2sums=('b6673d3e0b23ac9cfc1128c61584a00cf051d88ac34445067754b89937dc1c336f2e2666695a55b741024ecfd23c7fe0cc56a999cad69563a15d26873596e539')
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"
}
|