From 23c705a8f2f5d74fa06353e0465b1b50a85d4c84 Mon Sep 17 00:00:00 2001 From: Jenny Bryan Date: Thu, 25 Jul 2024 19:58:06 -0700 Subject: [PATCH] Document `open` --- R/r.R | 1 + man/use_test_helper.Rd | 2 ++ 2 files changed, 3 insertions(+) diff --git a/R/r.R b/R/r.R index 4327f8f91..557af63be 100644 --- a/R/r.R +++ b/R/r.R @@ -99,6 +99,7 @@ use_test <- function(name = NULL, open = rlang::is_interactive()) { #' #' @param name Can be used to specify the optional "SLUG" in #' `tests/testthat/helper-SLUG.R`. +#' @inheritParams edit_file #' @seealso #' * [use_test()] to create a test file. #' * The testthat vignette on special files diff --git a/man/use_test_helper.Rd b/man/use_test_helper.Rd index 88c80effd..367fb18ac 100644 --- a/man/use_test_helper.Rd +++ b/man/use_test_helper.Rd @@ -9,6 +9,8 @@ use_test_helper(name = NULL, open = rlang::is_interactive()) \arguments{ \item{name}{Can be used to specify the optional "SLUG" in \code{tests/testthat/helper-SLUG.R}.} + +\item{open}{Whether to open the file for interactive editing.} } \description{ This function creates (or opens) a test helper file, typically