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 27 forks source link

Get metric `remote_checks` working #492

Open AARON-CLARK opened 1 year ago

AARON-CLARK commented 1 year ago

I haven't verified, but perhaps we need pkg_ref(source = 'pkg_source')? Either way, whenever I run the following code, it seems remote_checks is always NA.

options(scipen=999)
library(dplyr)
library(riskmetric)

packageVersion("riskmetric") # v0.2.1
packageVersion("tidyCDISC") # v0.2.1

assessed <- "tidyCDISC" %>%
  pkg_ref() %>%
  as_tibble() %>%
  pkg_assess()

assessed %>%
  pkg_score() %>%
  select(-c(package, version, pkg_ref)) %>%
  t %>%
  round(4)

image

AARON-CLARK commented 1 year ago

Note: we do not have access to this using pkg_ref(., source = "pkg_cran_remote"). May want to wait for https://github.com/pharmaR/riskmetric/issues/299