pharmaR / riskassessment

Collaborative Deployment: https://app.pharmar.org/riskassessment/ Risk Assessment Demo App: https://rinpharma.shinyapps.io/riskassessment
https://pharmar.github.io/riskassessment/
Other
101 stars 28 forks source link

Accommodate PM source for final decisions #692

Open AARON-CLARK opened 1 year ago

AARON-CLARK commented 1 year ago

Related to #663

It would be naïve to think that orgs would rely solely on the {riskassessment} application to make final decisions on gxp inclusions requests. In reality, that process is probably determined through an automated qualification pipeline of sorts. As such, the app should both acknowledge & accommodate a "source of truth" for pkg decisions that lives outside the app's db. More than likely, that source of truth will come in the form of a Posit Package Manager, provisioned for GxP packages only. Thus, the config file should accept that pm's URL. We can call that package list using available.packages(), like below where we use a fictitious PM URL.

available.packages("https://my-company.qxp-pkgs/latest/src/contrib/")

Some things to take into account for this proposed change:

AARON-CLARK commented 1 year ago
  • Note: if needed, we can look retrospectively at older time points, by editing the url above by swapping out the word "latest" with a YYYY-MM-DD date.
    available.packages("https://my-company.qxp-pkgs/YYYY-MM-DD/src/contrib/")

Update: this statement is false info. First, the pm freeze dates do not include everyday, but only days in which a change occurred on the repo... So we'll need a way to programmatically look those up. Checking with a customer success rep at Posit about PM apis...