From 69246883faa2f616a2c12b8465de4bb2fef4020f Mon Sep 17 00:00:00 2001 From: Pekka Ristola Date: Mon, 18 Sep 2023 18:29:51 +0300 Subject: [PATCH] r-prediction: init, dependency of r-margins, which is checkdependency of r-estimatr, which is checkdependency of r-performance --- BioArchLinux/r-prediction/PKGBUILD | 67 ++++++++++++++++++++++++++++ BioArchLinux/r-prediction/lilac.py | 14 ++++++ BioArchLinux/r-prediction/lilac.yaml | 40 +++++++++++++++++ 3 files changed, 121 insertions(+) create mode 100644 BioArchLinux/r-prediction/PKGBUILD create mode 100644 BioArchLinux/r-prediction/lilac.py create mode 100644 BioArchLinux/r-prediction/lilac.yaml diff --git a/BioArchLinux/r-prediction/PKGBUILD b/BioArchLinux/r-prediction/PKGBUILD new file mode 100644 index 0000000000..a78461fb5a --- /dev/null +++ b/BioArchLinux/r-prediction/PKGBUILD @@ -0,0 +1,67 @@ +# Maintainer: Pekka Ristola + +_pkgname=prediction +_pkgver=0.3.14 +pkgname=r-${_pkgname,,} +pkgver=${_pkgver//-/.} +pkgrel=1 +pkgdesc="Tidy, Type-Safe 'prediction()' Methods" +arch=(any) +url="https://cran.r-project.org/package=${_pkgname}" +license=(MIT) +depends=( + r-data.table +) +checkdepends=( + r-aer + r-aod + r-betareg + r-biglm + r-brglm + r-caret + r-crch + r-e1071 + r-earth + r-gam + r-gee + r-glmnet + r-glmx + r-kernlab + r-lme4 + r-mclogit + r-mda + r-mnp + r-ordinal + r-plm + r-pscl + r-quantreg + r-sampleselection + r-speedglm + r-survey + r-testthat + r-truncreg +) +optdepends=( + r-testthat +) +source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz") +md5sums=('f27a713e1265ac86ab47b06a32154e44') +sha256sums=('3daf9f03c12f932817376361fecae62b8f74f5cce3f09096a84645d769c1942b') + +build() { + mkdir -p build + R CMD INSTALL "$_pkgname" -l build +} + +check() { + cd "$_pkgname/tests" + R_LIBS="$srcdir/build" NOT_CRAN=true Rscript --vanilla testthat-prediction.R +} + +package() { + install -d "$pkgdir/usr/lib/R/library" + cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library" + + install -d "$pkgdir/usr/share/licenses/$pkgname" + ln -s "/usr/lib/R/library/$_pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname" +} diff --git a/BioArchLinux/r-prediction/lilac.py b/BioArchLinux/r-prediction/lilac.py new file mode 100644 index 0000000000..b5cdb057c5 --- /dev/null +++ b/BioArchLinux/r-prediction/lilac.py @@ -0,0 +1,14 @@ +#!/usr/bin/env python3 +from lilaclib import * + +import os +import sys +sys.path.append(os.path.normpath(f'{__file__}/../../../lilac-extensions')) +from lilac_r_utils import r_pre_build + +def pre_build(): + r_pre_build(_G) + +def post_build(): + git_pkgbuild_commit() + update_aur_repo() diff --git a/BioArchLinux/r-prediction/lilac.yaml b/BioArchLinux/r-prediction/lilac.yaml new file mode 100644 index 0000000000..a3a933aa9d --- /dev/null +++ b/BioArchLinux/r-prediction/lilac.yaml @@ -0,0 +1,40 @@ +build_prefix: extra-x86_64 +maintainers: +- github: pekkarr + email: pekkarr@protonmail.com +repo_depends: +- r-data.table +repo_makedepends: +- r-aer +- r-aod +- r-betareg +- r-biglm +- r-brglm +- r-caret +- r-crch +- r-e1071 +- r-earth +- r-gam +- r-gee +- r-glmnet +- r-glmx +- r-kernlab +- r-lme4 +- r-mclogit +- r-mda +- r-mnp +- r-ordinal +- r-plm +- r-pscl +- r-quantreg +- r-sampleselection +- r-speedglm +- r-survey +- r-testthat +- r-truncreg +update_on: +- source: rpkgs + pkgname: prediction + repo: cran + md5: true +- alias: r