blob: 9b3fd1aac7a50834347e3bed73265ca7c12b7df7 (
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
86
87
|
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
# Contributor: Alex Branham <branham@utexas.edu>
_pkgname=dimRed
_pkgver=0.2.6
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="A Framework for Dimensionality Reduction"
arch=(any)
url="https://cran.r-project.org/package=${_pkgname}"
license=(GPL3)
depends=(
r-drr
r-magrittr
)
checkdepends=(
python-tensorflow
r-coranking
r-diffusionmap
r-fastica
r-igraph
r-keras
r-nmf
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-loe
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=('1cef3b06c7f0eea422fedbbf04a28e63')
sha256sums=('9a7eb14781f01a12e26e7b26a91c8edaca7d824b9c1ffe74c81837098d9bf417')
prepare() {
# fix import in test
sed -i 's/requireNamespace("FastICA"/requireNamespace("fastICA"/' "$_pkgname/tests/testthat/test_fastICA.R"
}
build() {
mkdir -p build
R CMD INSTALL "$_pkgname" -l build
}
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"
}
|