Title: | A web app designed to interface with the `riskmetric` package |
---|---|
Description: | A shiny application that allows users to define a list of R packages to assess metrics engineered by the `riskmetric` package. In general, those metrics evaluate package development best practices, code documentation, community engagement, and sustainability that culminate in a quantitative risk score. The app allows users to select and review one package at a time to consume interactive visuals, download reports for sharing, submit comments for group collaboration, and even tweak metric weights used to calculate the packages' risk scores. When deployed in the context of an organization, the app serves as a platform for package validation, offering an authentication wall where roles are assigned to various users and 'final decisions' can be made at the package level manually or through pre-defined automation rules. |
Authors: | Aaron Clark [aut, cre], Jeff Thompson [aut] (Co-Lead), Robert Krajcik [aut], Lars Andersen [aut], Andrew Borgman [aut], Munshi Imran Hossain [ctb], Scott Schumacker [ctb], Marly Gotti [aut], Maya Gans [aut], Aravind Reddy Kallem [aut], Eduardo Almeida [ctb], Narayanan Iyer [ctb], Fission Labs India Pvt Ltd [aut], PSI special interest group Application and Implementation of Methodologies in Statistics [cph, fnd], R Validation Hub [cph, fnd], GSK contributors [ctb] (Author of 'pharmaR/pkg_explorer' repo), Appsilon [ctb] |
Maintainer: | Aaron Clark <[email protected]> |
License: | MIT + file LICENSE |
Version: | 3.1.1 |
Built: | 2024-11-03 05:40:05 UTC |
Source: | https://github.com/pharmaR/riskassessment |
Responsible for building an interactive {plotly}
graphic containing the trend line for number of CRAN pkg downloads by month.
build_comm_plotly(data = NULL, pkg_name = NULL)
build_comm_plotly(data = NULL, pkg_name = NULL)
data |
a data.frame containing monthly download data, built using |
pkg_name |
a string of a package name. This parameter is optional. If |
a plotly object
an interactive plotly object
build_comm_plotly(pkg_name = "ggplot2")
Extracts community usage metrics for a given package.
generate_comm_data(pkg_name)
generate_comm_data(pkg_name)
pkg_name |
A string containing the name of a package. |
A tibble of community usage metrics
a data.frame which includes downloads per month for the given pkg
if( interactive()) { ggplot_comm_df <- generate_comm_data("ggplot2") head(ggplot_comm_df) }
if( interactive()) { ggplot_comm_df <- generate_comm_data("ggplot2") head(ggplot_comm_df) }
riskassessment
Application SettingsThis sets up the environment when running the riskassessment
Application. It sets the log file, initializes the package database if
missing, and initializes the credentials database if missing.
initialize_raa(assess_db, cred_db, configuration)
initialize_raa(assess_db, cred_db, configuration)
assess_db |
A string denoting the name of the assessment database. |
cred_db |
A string denoting the name of the credentials database. |
configuration |
a list dictating the configuration of the databases |
There is no return value. The function is run for its side effects.
Run the Shiny Application
run_app( onStart = initialize_raa, options = list(), enableBookmarking = NULL, uiPattern = "/", app_ver = NULL, login_note = NULL, ... )
run_app( onStart = initialize_raa, options = list(), enableBookmarking = NULL, uiPattern = "/", app_ver = NULL, login_note = NULL, ... )
onStart |
A function that will be called before the app is actually run.
This is only needed for |
options |
Named options that should be passed to the |
enableBookmarking |
Can be one of |
uiPattern |
A regular expression that will be applied to each |
app_ver |
a "global" variable that is passed to several modules & reports which details the installed package version when not specified. It can be overwritten to include a specific version name as a text string. |
login_note |
a text string to display underneath the auth screen's login button, provided to guide users |
... |
arguments to pass to golem_opts. See |
a shiny app object
Uploads a list of packages to the database. Designed to be used to set up the assessment database before deployment of the application.
upload_pkg_lst( pkg_lst, assess_db, repos, repo_pkgs, user_name = "system", updateProgress = NULL )
upload_pkg_lst( pkg_lst, assess_db, repos, repo_pkgs, user_name = "system", updateProgress = NULL )
pkg_lst |
character vector of packages to upload |
assess_db |
character name (and file path) of the database |
repos |
character vector, the base URL(s) of the repositories to use |
repo_pkgs |
for internal use only, allows the function
|
user_name |
character name of user |
updateProgress |
for internal use only, provides a function to update progress meter in the application |
A data frame object containing a summary of the upload process