Don't error no empty roxygen example#1096
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1096 +/- ##
=======================================
Coverage 91.07% 91.07%
=======================================
Files 46 46
Lines 2711 2712 +1
=======================================
+ Hits 2469 2470 +1
Misses 242 242
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
92db54a to
131e44c
Compare
|
This is how benchmark results would change (along with a 95% confidence interval in relative change) if e6fadbf is merged into main:
Further explanation regarding interpretation and methodology can be found in the documentation. |
131e44c to
1bcf338
Compare
1bcf338 to
9c77cbf
Compare
|
This is how benchmark results would change (along with a 95% confidence interval in relative change) if e6fadbf is merged into main:
Further explanation regarding interpretation and methodology can be found in the documentation. |
|
@IndrajeetPatil I also updated |
IndrajeetPatil
left a comment
There was a problem hiding this comment.
Thanks, @lorenzwalthert!
Also, tested the following two cases for a good measure, and everything looks good.
Thanks for finding the fix so quickly.
library(styler)
"#' Empty line in examples
#'
#' @examplesIf TRUE
#' \\donttest{
#' }
3" -> code
style_text(code)
#> #' Empty line in examples
#> #'
#> #' @examplesIf TRUE
#> #' \donttest{
#> #'
#> #' }
#> 3
"#' Empty line in examples
#'
#' @examples
#' \\dontshow{
#' }
4" -> code
style_text(code)
#> #' Empty line in examples
#> #'
#> #' @examples
#> #' \dontshow{
#> #'
#> #' }
#> 4Created on 2023-02-14 with reprex v2.0.2
I concur! |
Closes #1095.