From 3bf77e8b5dd17c6b860eb3896b67589b15ea67a2 Mon Sep 17 00:00:00 2001 From: mewu Date: Fri, 17 Jun 2022 12:00:04 -0700 Subject: [PATCH] Suggest to use roxytest for testing documentation https://cran.r-project.org/web/packages/roxytest/vignettes/introduction.html --- ehep/DESCRIPTION | 8 ++++++++ ehep/util/setup.R | 1 + 2 files changed, 9 insertions(+) diff --git a/ehep/DESCRIPTION b/ehep/DESCRIPTION index e3081e5b..8c72bc41 100644 --- a/ehep/DESCRIPTION +++ b/ehep/DESCRIPTION @@ -22,6 +22,14 @@ Imports: truncnorm Suggests: testthat (>= 3.0.0) + roxytest +Roxygen: list(roclets = c("namespace", "rd", + "roxytest::testthat_roclet", + "roxytest::param_roclet", + "roxytest::return_roclet", + "roxytest::examples_roclet" + ) + ) Config/testthat/edition: 3 Encoding: UTF-8 LazyData: true diff --git a/ehep/util/setup.R b/ehep/util/setup.R index 8c0786e1..16e586b4 100644 --- a/ehep/util/setup.R +++ b/ehep/util/setup.R @@ -13,6 +13,7 @@ packages = c( "truncnorm", "tibble", "testthat", + "roxytest", #------------ "readr", "tidyr"