Skip to content

Commit a18efe6

Browse files
committed
Fix docs
1 parent b236624 commit a18efe6

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

R/check-function.R

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
#'
6060
#' # SCT
6161
#' ex() %>% check_operator("+") %>% check_result() %>% check_equal()
62-
#' }
6362
#'
6463
#' # Example 4: Positional argument check
6564
#' cor(rnorm(10), rnorm(10))
@@ -72,14 +71,15 @@
7271
#'
7372
#' # Example 5: ... in check_args
7473
#'
75-
#'soln <- "std_dev <- purrr::compose(sqrt, var, .dir='forward')"
76-
#'state <- setup_state(soln, soln)
77-
#'state %>% check_function(., "compose") %>% {
78-
#' check_arg(., '..1') %>% check_equal() # sqrt
79-
#' check_arg(., '..2') %>% check_equal() # var
80-
#' check_arg(., '.dir') %>% check_equal()
81-
#'}
74+
#' soln <- "std_dev <- purrr::compose(sqrt, var, .dir='forward')"
75+
#' state <- setup_state(soln, soln)
76+
#' state %>% check_function(., "compose") %>% {
77+
#' check_arg(., '..1') %>% check_equal() # sqrt
78+
#' check_arg(., '..2') %>% check_equal() # var
79+
#' check_arg(., '.dir') %>% check_equal()
80+
#' }
8281
#'
82+
#' }
8383
#' @name check_function
8484

8585
#' @rdname check_function

man/check_function.Rd

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

0 commit comments

Comments
 (0)