The goal of val.report is to documents results of package checks for validation.
You can install the development version of val.report from GitHub with:
# install.packages("pak")
pak::pak("pharmaR/val.report")This is a basic example which shows you how to solve a common problem:
library(val.report)
# Specify the folder where the files should go (here for easy access on the website)
options("valreport_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 = "val.report")),
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: