mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-prediction: init, dependency of r-margins, which is checkdependency of r-estimatr, which is checkdependency of r-performance
This commit is contained in:
parent
eb976c9fe9
commit
69246883fa
3 changed files with 121 additions and 0 deletions
67
BioArchLinux/r-prediction/PKGBUILD
Normal file
67
BioArchLinux/r-prediction/PKGBUILD
Normal file
|
@ -0,0 +1,67 @@
|
|||
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
|
||||
|
||||
_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"
|
||||
}
|
14
BioArchLinux/r-prediction/lilac.py
Normal file
14
BioArchLinux/r-prediction/lilac.py
Normal file
|
@ -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()
|
40
BioArchLinux/r-prediction/lilac.yaml
Normal file
40
BioArchLinux/r-prediction/lilac.yaml
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue