The purpose of the mrgvalidate
package is to generate 7 specific documents that are necessary for the software validation process at Metrum Research Group. Those documents are:
Install from source by pulling the tarball or use:
devtools::install_github("metrumresearchgroup/mrgvalidate")
By default, these calls (create_package_docs()
and create_metworx_docs()
) will write .docx
files for all seven documents into your working directory. Parameterized .Rmd
files are first copied over, but are removed at the end (you can override this with the argument cleanup_rmd = FALSE
). If all input data conforms to what is described in ?mrgvalidate::input_formats
, you should only have to write a single a line.
The spec_df
object and test directories below are created by helper functions in the mrgvalprep
package. See the function documentation and "Basic Usage" vignette for more details.
create_package_docs(
product_name = "Fake Product",
version = "vFake",
repo_url = "git@github.com:org/package.git",
specs = spec_df, # a tibble containing stories and requirements to validate
release_notes_file = "NEWS.md", # file path to a formatted markdown doc of release notes.
auto_test_dir = "some_dir", # directory containing automated test results
style_dir = "style_ref_dir" # Directory that has style references for the generated docx files
)
See ?create_package_docs
for other arguments to tweak how and where the documents are rendered. The contents of the release_notes_file
file should be filtered to just the current version via mrgvalprep
.
create_metworx_docs(
product_name = "Fake Product",
version = "vFake",
specs = spec_df, # a tibble containing stories and requirements to validate
release_notes_file = "NEWS.md", # file path to a formatted markdown doc of release notes.
auto_test_dir = "some_dir", # directory containing automated test results
man_test_dir = "some_dir", # directory containing automated test results
style_dir = "style_ref_dir" # Directory that has style references for the generated docx files
)
See ?create_metworx_docs
for other arguments to tweak how and where the documents are rendered.
mrgvalidate
requires a specific format for the input data. The mrgvalprep
package exists to transform a variety of common data sources into the format required by mrgvalidate
. Please see the mrgvalprep
Basic Usage vignette for details on several different formats and use cases.
There are several helper functions for checking the linkage between stories/requirements and tests. See ?find_missing
for details.
mrgvalidate
uses pkgr to manage
development dependencies and renv to provide
isolation. To replicate this environment,
clone the repo
install pkgr
open package in an R session and run renv::init(bare = TRUE)
install renv
> 0.8.3-4 into default .libPaths()
if not already installed
run pkgr install
in terminal within package directory
restart session
Then, launch R with the repo as the working directory (open the project in RStudio). renv will activate and find the project library.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.