Skip to main content

Bundle and unpack the societal_costs_r project files

Project description

Societal Costs R Bundle

This repository develops the societal_costs_r R project and ships it through a small Python wheel wrapper. The Python package exists only because the remote Windows host accepts packages from its PyPI mirror but does not allow pasting or normal file transfer.

The source of truth for the R code is the top-level r_project/ directory. During wheel builds, that project is embedded as societal_costs_r_bundle/r_project/ so the installed unpack command can copy it onto the remote host.

Repository Layout

  • r_project/R/: R helper functions used by the pipeline.
  • r_project/scripts/: stage scripts and the interactive runner.
  • r_project/tests/: local R contract tests, not included in the wheel.
  • src/societal_costs_r_bundle/: Python unpack wrapper.
  • tests/: Python tests for the wrapper.

Included Files

  • R/
  • scripts/
  • HFAUDD.json
  • AUDD_HOVED_E_L1L5_K.txt
  • README.md

Usage

unpack /target/path

The command copies the bundled project files into the exact path you provide and fails if that path already exists. Generated outputs, local R tests, and docs are intentionally not copied into the unpacked runtime project.

Inside the unpacked R project, scripts/99_run_all_interactive.R is the main entry point for interactive production runs. On Windows it defaults to the standard production roots for intermediate_root, the flat cost-register delivery, POPC, and indberetningmedpris.parquet. Outputs are written in a structured output/ tree by default, with logs under output/logs/ and model diagnostics under output/analysis/model_diagnostics.csv.

Release Checks

Run the local checks before building:

just release-check

Or run the steps individually:

just r-test
just py-test
uv build

Inspect the wheel before publishing:

unzip -l dist/*.whl

The wheel should include r_project/R/, r_project/scripts/, r_project/HFAUDD.json, r_project/AUDD_HOVED_E_L1L5_K.txt, and r_project/README.md; it should not include r_project/output/.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file societal_costs_rscripts_publication_plots-0.1.0.tar.gz.

File metadata

File hashes

Hashes for societal_costs_rscripts_publication_plots-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ea3e288ab98680ced0cf7a77775e4d5fa10ea39d8f801c09de3d99a4a09eceb9
MD5 cdd4b53086d3c540be5c1722273d4644
BLAKE2b-256 6d8229096489486c06ba8570914db9681c57e8eebb6779e7497ccae40dc55ec1

See more details on using hashes here.

File details

Details for the file societal_costs_rscripts_publication_plots-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for societal_costs_rscripts_publication_plots-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d78db3d6bb7b02641ffe96cf7e5d407bc20f346d733c2d28024e82de7b7b8838
MD5 c12f62202791cd33bba1163f2c3519cd
BLAKE2b-256 78a58cf2f18984b0ea3f8cc05d1e3bb2964100486b4a23eeeb36f7bf18690d25

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page