blob: cd49c60e5a529c11c243f469effc7e36bfdd95a2 (
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
73
74
75
76
77
78
79
|
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
# Contributor: Guoyi Zhang <guoyizhang at malacology dot net>
# Contributor: anzi2001 <anzi2001 at gmail dot com>
# Contributor: haha662 <haha662 at outlook dot com>
# Contributor: Kibouo <csonka.mihaly@hotmail.com>
# Contributor: Ward Segers <w@rdsegers.be>
# Contributor: Alex Branham <branham@utexas.edu>
_pkgname=rmarkdown
_pkgver=2.29
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="Dynamic Documents for R"
arch=(any)
url="https://cran.r-project.org/package=$_pkgname"
license=('GPL-3.0-only')
depends=(
pandoc
r-bslib
r-evaluate
r-fontawesome
r-htmltools
r-jquerylib
r-jsonlite
r-knitr
r-tinytex
r-xfun
r-yaml
)
checkdepends=(
r-curl
r-shiny
r-testthat
r-xml2
texlive-basic
texlive-fontsrecommended
texlive-latexextra
)
optdepends=(
r-cleanrmd
r-digest
r-downlit
r-dygraphs
r-fs
r-katex
r-rsconnect
r-sass
r-shiny
r-testthat
r-tibble
r-vctrs
r-withr
r-xml2
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('8c967d7e2c8cb7c51366363340a76e15')
b2sums=('51a3c8dd1b983180dc5bb233b9cfd2da23323fb74d32159c5c29d7057b4e9640ec165f60126b1da97dc82339e1696dc67c2dc0dd80167bceb32384b0571fa417')
prepare() {
# Skip a test that might fail depending on environment
sed -i '/"Converting bib file is working"/a\ \ skip("Inconsistent test")' \
"$_pkgname/tests/testthat/test-pandoc.R"
}
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"
}
|