From 5fb02ab142ed063495a819064fcd23a1317f9bc0 Mon Sep 17 00:00:00 2001 From: Pekka Ristola Date: Mon, 4 Dec 2023 13:48:46 +0200 Subject: [PATCH] r-ellipsis: enable tests r-testthat 3.2.1 no longer depends on r-ellipsis, so the tests can be enabled without creating a dependency cycle --- BioArchLinux/r-ellipsis/PKGBUILD | 8 ++++++++ BioArchLinux/r-ellipsis/lilac.yaml | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/BioArchLinux/r-ellipsis/PKGBUILD b/BioArchLinux/r-ellipsis/PKGBUILD index 632a8c2b02..2c477e91b1 100644 --- a/BioArchLinux/r-ellipsis/PKGBUILD +++ b/BioArchLinux/r-ellipsis/PKGBUILD @@ -15,6 +15,9 @@ license=(MIT) depends=( r-rlang ) +checkdepends=( + r-testthat +) optdepends=( r-covr r-testthat @@ -28,6 +31,11 @@ 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" diff --git a/BioArchLinux/r-ellipsis/lilac.yaml b/BioArchLinux/r-ellipsis/lilac.yaml index a7b0126b45..9b268d2bc3 100644 --- a/BioArchLinux/r-ellipsis/lilac.yaml +++ b/BioArchLinux/r-ellipsis/lilac.yaml @@ -4,9 +4,13 @@ maintainers: email: pekkarr@protonmail.com repo_depends: - r-rlang +repo_makedepends: +- r-testthat update_on: - source: rpkgs pkgname: ellipsis repo: cran md5: true - alias: r +- source: manual + manual: 1