Skip to contents

Show where each function's method comes from, who wrote it and which package versions ran, for methods sections and citations. The source_commit column is the audited source pin. runtime_source_commit is read from an installed package's RemoteSha and is unknown when absent.

Usage

factor_provenance(
  function_name = NULL,
  result = NULL,
  include_dependencies = TRUE
)

Arguments

function_name

Optional character function names, e.g. "factor_features"; internal implementations are included. Default all.

result

Optional result object from this package; its recorded analysis_metadata selects the functions.

include_dependencies

Add installed dependency versions and commit SHAs (default TRUE).

Value

Data frame with one row per function and source: origin, authors, source commit and license, with runtime metadata attributes.

Details

Origin: NEW_QOL / none. Credits new registry interface; use factor_provenance("factor_provenance") for audited sources and runtime versions. Input units and basis are retained; display/conditional results do not establish biological replication.

Author

Mikhael Manurung. Full source and dependency credits: https://github.com/mdmanurung/flashier-utils/blob/main/CREDITS.md.

Examples

factor_provenance(c("standardize_factors", "backproject_contrast"))
#>              provenance_id             function classification code_reuse
#> 4   PV_standardize_factors  standardize_factors        ADAPTED  call_only
#> 15 PV_backproject_contrast backproject_contrast        ADAPTED       none
#>    source_id                     upstream_symbol            source_path
#> 4        S01                                 ldf      R/flash_methods.R
#> 15       S04 FlashierDGE reconstruction workflow R/flashier_functions.R
#>                               source_commit
#> 4  fd44811ab22d61ee905e1964175571c452fe7683
#> 15 4ba5bb9c0bbb1ab1d5a5ac4a6a12eb97badd0902
#>                                                              authors
#> 4  Jason Willwerscheid; Peter Carbonetto; Wei Wang; Matthew Stephens
#> 15                                                     David Zemmour
#>               declared_license                  license_status
#> 4  BSD_3_clause + file LICENSE declaration_and_notice_verified
#> 15          MIT + file LICENSE  referenced_root_LICENSE_absent
#>                      conceptual_origin
#> 4                                  ldf
#> 15 FlashierDGE reconstruction workflow
#>                                                                   planned_changes
#> 4  See normative module contract; no upstream source redistributed in this bundle
#> 15 See normative module contract; no upstream source redistributed in this bundle
#>    evidence_ids                            audit_status implementation_status
#> 4          E002 sources_verified_supported_modes_tested           implemented
#> 15    E013;E027 sources_verified_supported_modes_tested           implemented
#>    task implementation_path
#> 4  T013  R/representation.R
#> 15 T016  R/backprojection.R