Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define a class for a cohort of R packages and its metrics #198

Open
elong0527 opened this issue Apr 14, 2021 · 1 comment
Open

Define a class for a cohort of R packages and its metrics #198

elong0527 opened this issue Apr 14, 2021 · 1 comment
Assignees
Labels
Cohort Metric Metrics which span multiple package references (like dependencies or across a library)

Comments

@elong0527
Copy link
Collaborator

elong0527 commented Apr 14, 2021

Following the discussion in #174, we need to discuss and create a prototype for a class that:

  1. can contain package metrics for a group of packages
  2. can contain cohort level assessments (to use riskmetric parlance)
  3. can contain cohort level reference information
@elimillera
Copy link
Collaborator

Arguments

pkgs - First argument is a character vector (or ellipsis?) that represents packages to be constructed into a cohort. This could also be a vector/list of existing package refs.
dependancies - Should package dependancies for explicitly passed packages be listed in the cohort_ref? Allowable values would be the same as the dependancies argument in install.packages.
lib.loc - A library to pull a list of installed packages from.
repo - A repository to pull all available packages from.
... - Passed to methods

Qualities of a cohort_ref object

Unclassed object could be a tibble/list where each row relates to a single package and contains the pkg_refs, and cohort metrics

>cohort_ref("dplyr", "Tplyr")
# Cohort Ref 
  package            dependancies namespace_conflicts license
  <list<pkg_ref>>       <chr>               <chr>             <dbl>
1 Tplyr<cran_remote>     deps                  N/A                 MIT
2 dplyr<install>         deps                  N/A                 MIT

@emilliman5 you've already done quite a bit of work here #221. I'm thinking everything I laid out here works with that already, with just a couple extra arguments and functionality. I'd be really interested to hear your throughts

@emilliman5 emilliman5 added the Cohort Metric Metrics which span multiple package references (like dependencies or across a library) label Feb 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cohort Metric Metrics which span multiple package references (like dependencies or across a library)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants