Skip to content

Commit 0d67987

Browse files
also add tests for roxygen comments
1 parent 226615d commit 0d67987

File tree

3 files changed

+117
-93
lines changed

3 files changed

+117
-93
lines changed

tests/testthat/roxygen-examples-complete/13-empty-lines-in.R

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,27 @@
1212
#'
1313
#'
1414
#'
15+
#' (
16+
#'
17+
#'
1518
#' # more
1619
#' a <- 3
20+
#'
21+
#' )
1722
#' # a comment
1823
#' \dontrun{
24+
#' {
25+
#'
1926
#' x
2027
#'
28+
#' }
29+
#'
2130
#' y # hi
2231
#'
2332
#' # more
2433
#'
2534
#' a <- 3
35+
#'
2636
#' }
2737
#' @importFrom purrr compact
2838
#' @export

tests/testthat/roxygen-examples-complete/13-empty-lines-in_tree

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

tests/testthat/roxygen-examples-complete/13-empty-lines-out.R

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,15 @@
1111
#'
1212
#'
1313
#'
14-
#' # more
15-
#' a <- 3
14+
#' (
15+
#' # more
16+
#' a <- 3
17+
#' )
1618
#' # a comment
1719
#' \dontrun{
18-
#' x
20+
#' {
21+
#' x
22+
#' }
1923
#'
2024
#' y # hi
2125
#'

0 commit comments

Comments
 (0)