Skip to content

rashnu

Balanced Sample Size and Power Calculation Tools

v0.1.2 · Jul 23, 2025 · MIT + file LICENSE

Description

Implements sample size and power calculation methods with a focus on balance and fairness in study design, inspired by the Zoroastrian deity Rashnu, the judge who weighs truth. Supports survival analysis and various hypothesis testing frameworks.

Downloads

CRAN

255

Last 30 days

19335th

563

Last 90 days

2.1K

Last year

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

r2u CRAN

0

Last 30 days

24

Last 90 days

97

Last year

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

autoCRAN

2

Last 7 days

13

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 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

2,768

Files

83

Compiled share

0%

Has compiled src

No

Language breakdown

R 1,402 (50.7%)Tests 203 (7.3%)Docs 1,163 (42%)

API

Exported functions

16

Internal functions

1

Recent export changes

v0.1.2+12 coxph_size, k_mean_size, k_prop_size +9 more
v0.1.0+4 lakatosSampleSize, oneSurvSampleSize, rashnuBasic +1 more

Testing & CI

Has tests

Yes

Test-to-code ratio

0.14

testthat edition

3

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

0%

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

MIT + file LICENSE

License flags

SPDX valid, OSI approved

History

Versions

3

First release

2025-05-16

Latest release

2025-07-23

Avg cadence

34 days

Cold removal rate

Dep drift

0

LOC over versions

v0.1.0: 1,140 LOCv0.1.1: 1,140 LOCv0.1.2: 2,768 LOC

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

Dependency Network

Dependencies Reverse dependencies shiny DT rashnu

Version History

4 tracked
new 0.1.2 Mar 10, 2026
updated 0.1.2 ← 0.1.1 diff Jul 22, 2025
updated 0.1.1 ← 0.1.0 diff Jun 17, 2025
new 0.1.0 May 15, 2025