From 37ff96e70baa70adc197d911f6b747322d072226 Mon Sep 17 00:00:00 2001 From: Christos Longros Date: Mon, 11 May 2026 09:59:50 +0200 Subject: [PATCH] r-cmprsk: add Subdistribution Analysis of Competing Risks Estimation, testing and regression modeling of subdistribution functions in competing risks, as described in Gray (1988), A class of K-sample tests for comparing the cumulative incidence of a competing risk, Annals of Statistics 16:1141-1154, and Fine JP and Gray RJ (1999), A proportional hazards model for the subdistribution of a competing risk, JASA 94:496-509. Signed-off-by: Christos Longros --- BioArchLinux/r-cmprsk/PKGBUILD | 26 ++++++++++++++++++++++++++ BioArchLinux/r-cmprsk/lilac.py | 11 +++++++++++ BioArchLinux/r-cmprsk/lilac.yaml | 10 ++++++++++ 3 files changed, 47 insertions(+) create mode 100644 BioArchLinux/r-cmprsk/PKGBUILD create mode 100644 BioArchLinux/r-cmprsk/lilac.py create mode 100644 BioArchLinux/r-cmprsk/lilac.yaml diff --git a/BioArchLinux/r-cmprsk/PKGBUILD b/BioArchLinux/r-cmprsk/PKGBUILD new file mode 100644 index 0000000000..5bbdb5f8ad --- /dev/null +++ b/BioArchLinux/r-cmprsk/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Christos Longros +_pkgname=cmprsk +_pkgver=2.2-12 +pkgname=r-${_pkgname,,} +pkgver=${_pkgver//-/.} +pkgrel=1 +pkgdesc="Subdistribution Analysis of Competing Risks" +arch=(any) +url="https://cran.r-project.org/package=$_pkgname" +license=('GPL-2.0-or-later') +depends=( + r +) +makedepends=( + gcc-fortran +) +source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz") +md5sums=('ae85888a4daf6417d48fc35cb306e909') +build() { + mkdir build + R CMD INSTALL -l build "$_pkgname" +} +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-cmprsk/lilac.py b/BioArchLinux/r-cmprsk/lilac.py new file mode 100644 index 0000000000..e954aae0d3 --- /dev/null +++ b/BioArchLinux/r-cmprsk/lilac.py @@ -0,0 +1,11 @@ +#!/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-cmprsk/lilac.yaml b/BioArchLinux/r-cmprsk/lilac.yaml new file mode 100644 index 0000000000..50759af98b --- /dev/null +++ b/BioArchLinux/r-cmprsk/lilac.yaml @@ -0,0 +1,10 @@ +build_prefix: extra-x86_64 +maintainers: +- github: chrislongros + email: chris.longros@gmail.com +update_on: +- source: rpkgs + pkgname: cmprsk + repo: cran + md5: true +- alias: r