{"id":13400910,"url":"https://github.com/pharmaR/riskmetric","last_synced_at":"2025-03-14T06:32:00.841Z","repository":{"id":37865545,"uuid":"173354970","full_name":"pharmaR/riskmetric","owner":"pharmaR","description":"Metrics to evaluate the risk of R packages ","archived":false,"fork":false,"pushed_at":"2025-02-21T13:13:05.000Z","size":3903,"stargazers_count":167,"open_issues_count":120,"forks_count":33,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-03-06T01:53:13.620Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pharmar.github.io/riskmetric/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pharmaR.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-01T19:11:16.000Z","updated_at":"2025-02-21T13:07:14.000Z","dependencies_parsed_at":"2023-02-18T09:16:09.832Z","dependency_job_id":"2d3ad068-b5db-4912-b3ff-0b13da948962","html_url":"https://github.com/pharmaR/riskmetric","commit_stats":{"total_commits":407,"total_committers":21,"mean_commits":19.38095238095238,"dds":0.7027027027027026,"last_synced_commit":"31854aebd9ddd85941b3b1b8d3ebff9c2d100d2c"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pharmaR%2Friskmetric","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pharmaR%2Friskmetric/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pharmaR%2Friskmetric/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pharmaR%2Friskmetric/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pharmaR","download_url":"https://codeload.github.com/pharmaR/riskmetric/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243537993,"owners_count":20307099,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T19:00:56.833Z","updated_at":"2025-03-14T06:32:00.834Z","avatar_url":"https://github.com/pharmaR.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"# riskmetric \u003ca href='https://pharmar.github.io/riskmetric/'\u003e\u003cimg src=\"man/figures/logo.png\" align=\"right\" height=\"172\" style=\"float:right; height:172px;\"/\u003e\u003c/a\u003e\n\n\u003c!-- badges: start --\u003e\n[![R build status](https://github.com/pharmaR/riskmetric/workflows/R-CMD-check/badge.svg)](https://github.com/pharmaR/riskmetric/actions?workflow=R-CMD-check)\n[![Coverage status](https://codecov.io/gh/pharmaR/riskmetric/branch/master/graph/badge.svg)](https://app.codecov.io/gh/pharmaR/riskmetric?branch=master)\n\u003c!-- badges: end --\u003e\n\n`riskmetric` is a collection of risk metrics to evaluate the quality of R\npackages.\n\n_This package is in experimentation. Final considerations about design are being\nconsidered, but core concepts are considered final._\n\n## Background\n\nThe risk of using an R package is evaluated based on a number of metrics meant\nto evaluate development best practices, code documentation, community engagement\nand development sustainability. We hope to provide a framework to quantify risk\nby assessing these metrics. This package serves as a starting point for\nexploring the heterogeneity of code quality, and begin a broader conversation\nabout the validation of R packages. Primarily, this effort aims to provide some\ncontext for validation within regulated industries.\n\nWe separate three steps in the workflow to assess the risk of an R package using `riskmetric`:\n\n1. **Finding a source for package information (installed package or CRAN/git source)** `pkg_ref()`\n1. **Assessing the package under validation criteria** `pkg_assess()`\n1. **Scoring assessment criteria** `pkg_score()`\n\nThe results will be assembled in a dataset of validation criteria containing an\noverall risk score for each package as shown in the example below.\n\n## Installation\n\nYou can install `riskmetric`  from CRAN with:\n\n```r\ninstall.packages(\"riskmetric\")\n```\n\nOr from GitHub using `devtools` with:\n\n```r\ndevtools::install_github(\"pharmaR/riskmetric\")\n```\n\n## Example\n\nScrape metadata locally or remotely, then assess that metadata and score it to\nestimate risk. For each package, derive a composite measure of risk, or a\ncollection of individual scores which can be easily used to generate validation\nreports.\n\n```r\nlibrary(dplyr)\nlibrary(riskmetric)\n\npkg_ref(c(\"riskmetric\", \"utils\", \"tools\")) %\u003e%\n  pkg_assess() %\u003e%\n  pkg_score()\n```\n\n## The `{riskassessment}` application \u003ca href='https://pharmar.github.io/riskassessment/'\u003e\u003cimg src=\"man/figures/hex-riskassessment-aspconfig.png\" align=\"right\" height=\"172\" style=\"float:right; height:172px;\"/\u003e\u003c/a\u003e\n\n`riskassessment` is a full-fledged R package containing a shiny front-end that\naugments the utility of `riskmetric`. The application's goal is to provide a \ncentral hub for an organization to review and assess the risk of R packages,\nproviding handy tools and guide rails along the way. The app uses a local\ndatabase to store \u0026 display:\n\n* all `riskmetric` metrics, including package risk scores over time\n* organization-wide metric weighting, plus rules to automate org decisions\n(whether to endorse/ prohibit the pkg)\n* package-level user dialogue on the perceived risk, to facilitate communication\n\u0026 notes\n\nTo learn more about `riskassessment`, please browse the [user guide](https://pharmar.github.io/riskassessment/) or consider\ntaking the [demo app](https://rinpharma.shinyapps.io/risk_assessment) for a spin.\n\n## Get Involved\n\nWe have a bi-weekly sprint meeting for developers to discuss the progress.\n\n* Contact `eric.milliman@biogen.com` to be added to the meeting.\n* [Project Planning Meeting Structure](https://github.com/pharmaR/riskmetric/issues/57) \n* [Milestone](https://github.com/pharmaR/riskmetric/milestones)\n\n`riskmetric` is centrally a community project. Comfort with a quantification of\nrisk comes via consensus, and for that this project is dependent on close\ncommunity engagement. There are plenty of ways to help:\n\n- Share the package\n- File [issues](https://github.com/pharmaR/riskmetric/issues) when you encounter bugs\n- Weigh in on proposed metrics, or [suggest a new one](https://github.com/pharmaR/riskmetric/issues/new?labels=Metric%20Proposal)\n- Help us devise the best way to summarize risk into a single score\n- Help us keep documentation up to date\n- Contribute code to tackle the metric backlog\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FpharmaR%2Friskmetric","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FpharmaR%2Friskmetric","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FpharmaR%2Friskmetric/lists"}