Skip to content

pharmaR/riskreports

Repository files navigation

riskreports riskreports website

Codecov test coverage R-CMD-check

The goal of riskreports is to documents results of package checks for validation.

Important

The development of the package continues on val.report

Installation

You can install the development version of riskreports from GitHub with:

# install.packages("pak")
pak::pak("pharmaR/riskreports")

Example

This is a basic example which shows you how to solve a common problem:

unlink("pkgdown/assets/*")
library(riskreports)
# Specify the folder where the files should go (here for easy access on the website)
options("riskreports_output_dir" = "pkgdown/assets")
pr <- package_report(
  package_name = "dplyr",
  package_version = "1.1.4",
  params = list(
    assessment_path = system.file("assessments/dplyr.rds", package = "riskreports")),
  quiet = TRUE # To silence quarto output for readability
)
#> Warning in package_report(package_name = "dplyr", package_version = "1.1.4", :
#> Please provide the source of the package assessment
pr
#> [1] "pkgdown/assets/validation_report_dplyr_v1.1.4.html"
#> [2] "pkgdown/assets/validation_report_dplyr_v1.1.4.md"  
#> [3] "pkgdown/assets/validation_report_dplyr_v1.1.4.pdf"

We first selected were reports should go. Then we used {riskmetric} data to generate the report for the package.

Then we can access those files on the website:

About

Report generation utilities for risk indicators

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Contributors 8

Languages