blob: d1ef4c61720c5279001f604ea8a32a910e6a60cd (
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
80
81
82
83
84
85
|
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
# Contributor: Alex Branham <branham@utexas.edu>
_pkgname=dimRed
_pkgver=0.2.7
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="A Framework for Dimensionality Reduction"
arch=(any)
url="https://cran.r-project.org/package=$_pkgname"
license=('GPL-3.0-only')
depends=(
r-drr
r-magrittr
)
checkdepends=(
python-tensorflow
r-coranking
r-diffusionmap
r-fastica
r-igraph
r-keras
r-pcal1
r-rann
r-reticulate
r-rspectra
r-rtsne
r-tensorflow
r-testthat
r-umap
r-vegan
)
optdepends=(
r-cccd
r-coranking
r-diffusionmap
r-energy
r-fastica
r-ggplot2
r-igraph
r-keras
r-kernlab
r-knitr
r-nmf
r-optimx
r-pcal1
r-pcapp
r-rann
r-reticulate
r-rgl
r-rspectra
r-rtsne
r-scales
r-scatterplot3d
r-tensorflow
r-testthat
r-tidyr
r-tinytex
r-umap
r-vegan
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('ef00e212ad67f957405aeae2735dba69')
b2sums=('454e129ca15434123189e4e93b92da9dbbb8da8168f9329195d84de46820fab574a50c2e70b34110705687d06d3e0591ae3a8c2212000de0dbe77a127b612ac4')
prepare() {
# fix import in test
sed -i 's/requireNamespace("FastICA"/requireNamespace("fastICA"/' "$_pkgname/tests/testthat/test_fastICA.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"
}
|