Skip to content

greenbook

0.1.0

HM Treasury Green Book Cost-Benefit Analysis Primitives

0packages depend
1.1Kdownloads / year
89.4%test coverage
12/13checks pass

Overview

About
Maintained by Charles CoverdaleFirst published 2026-04-291 releasesCRAN page ↗GitHub ↗

Implements cost-benefit analysis primitives from HM Treasury Green Book guidance (HM Treasury, 2022, 2026): the kinked Social Time Preference Rate ('STPR'), discount factors, net present value ('NPV'), equivalent annual cost, and real-terms rebasing using the GDP deflator. Designed for UK central government appraisal and evaluation. Bundled parameter tables carry vintage metadata for reproducibility.

Install

Health

CRAN checks
1NOTE12OK
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-gcc
Slowest check: 1.6 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.51
89.4%
Coverage · measured lines
100%
Documentation · exports
3
Dependencies · direct
Check history
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-04-29
    5 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 924 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 67% structuredCode of conductNoContributing guideNo
Examples that run
94%
Documented parameters
100%
Return-value docs
100%
References docs
71%

Downloads

1.1K
CRAN downloads in the past year
Rank #10,522 · ~3/day · ~89/mo
Daily download trend is not available in this view yet.
15630 days
95490 days
1.1K1 year
Compare downloads with other packages →
Also on27 r2u

Repository

Repository
0Stars
0Forks
0Open issues
0Open PRs
0Releases
Last activity 2026-08-02

Repository practices

Upstream repositoryBeta

4 development-tooling and community-health practices detected across 3 families in the upstream repository

Checks run against github.com/charlescoverdale/greenbook on 2026-08-03.

Reproducibility and dev environment (1)
data-raw/
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Research and citation (1)
CITATION.cff
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
8 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.1.0
Imports (3)
clistatsutils
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

People & History

People (1)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Package Timeline

1 release. R releases are shown for context.

  • 0.1.0Latest
    2026-04-29 · current release
  • R
    R 4.6.0 released · 2026-04-24

Package metadata

First published
2026-04-29
Total releases
1 / 1 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.1.0
Download size
not tracked yet
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy