Skip to content

reslife

Calculate Mean Residual Life (MRL) and Related Values for Different Distributions

v0.2.1 · Oct 26, 2023 · GPL (>= 3)

Description

A pair of functions for calculating mean residual life (MRL) , median residual life, and percentile residual life using the outputs of either the 'flexsurv' package or parameters provided by the user. Input information about the distribution, the given 'life' value, the percentile, and the type of residual life, and the function will return your desired values. For the 'flexsurv' option, the function allows the user to input their own data for making predictions. This function is based on Jackson (2016) <doi:10.18637/jss.v070.i08>.

Downloads

CRAN

226

Last 30 days

21820th

558

Last 90 days

2.1K

Last year

Trend: +66.2% (30d vs prior 30d)

r2u CRAN

0

Last 30 days

23

Last 90 days

90

Last year

Trend: -100% (30d vs prior 30d)

autoCRAN

3

Last 7 days

7

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

package dependencies

Package required but not available: ‘flexsurv’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

2,269

Files

26

Compiled share

0%

Has compiled src

No

Language breakdown

R 1,901 (83.8%)Docs 129 (5.7%)Vignettes 239 (10.5%)

API

Exported functions

2

Internal functions

15

Recent export changes

v0.1.0+2 residlife, reslifefsr

Testing & CI

Has tests

No

Test-to-code ratio

0.00

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

System requirements

C++ standard

License

GPL (>= 3)

License flags

SPDX valid, OSI approved

History

Versions

4

First release

2023-08-15

Latest release

2023-10-26

Avg cadence

34 days

Cold removal rate

Dep drift

0

LOC over versions

v0.1.0: 2,188 LOCv0.1.1: 2,190 LOCv0.1.2: 2,190 LOCv0.2.1: 2,269 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies pracma flexsurv gsl reslife

Version History

5 tracked
new 0.2.1 Mar 10, 2026
updated 0.2.1 ← 0.1.2 diff Oct 25, 2023
updated 0.1.2 ← 0.1.1 diff Sep 19, 2023
updated 0.1.1 ← 0.1.0 diff Sep 17, 2023
new 0.1.0 Aug 14, 2023