Skip to content

Commit 515efc4

Browse files
authored
Use deparse1() instead of paste(deparse(), collapse = " "). (#2761)
1 parent 6ecf766 commit 515efc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/rd-example.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ process_conditional_examples <- function(rd) {
6363
if (isTRUE(cond)) {
6464
remove <- c(remove, idx, idx + 1L)
6565
} else {
66-
cond_expr_str <- paste(deparse(cond_expr), collapse = " ")
66+
cond_expr_str <- deparse1(cond_expr)
6767
is_false <- cond_expr_str == "FALSE"
6868
if (!is_false) {
6969
new_cond <- paste0("if (FALSE) { # ", cond_expr_str)

0 commit comments

Comments
 (0)