Skip to content

Commit 6f61047

Browse files
committed
docs: safeguard example
1 parent d2e4869 commit 6f61047

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

R/mock2-helpers.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
#'
1313
#' @examples
1414
#' # inside local_mocked_bindings()
15-
#' readline <- NULL
15+
#' \dontrun{
1616
#' local_mocked_bindings(readline = mock_output_sequence(c("3", "This is a note", "n")))
17+
#' }
1718
#' # for understanding
1819
#' mocked_sequence <- mock_output_sequence(c("3", "This is a note", "n"))
1920
#' mocked_sequence()

man/mock_output_sequence.Rd

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)