Skip to content

Commit

Permalink
"weld" the few short pipes into one expression
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Aug 12, 2024
1 parent fc0d3e1 commit 52a5165
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions R/as_rtf.R
Original file line number Diff line number Diff line change
Expand Up @@ -251,16 +251,11 @@ as_rtf.fixed_design <- function(
)

if (!is.null(footnote)) {
ans <- ans %>%
r2rtf::rtf_footnote(footnote,
text_font_size = text_font_size
)
ans <- r2rtf::rtf_footnote(ans, footnote, text_font_size = text_font_size)
}

# Prepare output
ans %>%
r2rtf::rtf_encode() %>%
r2rtf::write_rtf(file = file)
r2rtf::write_rtf(r2rtf::rtf_encode(ans), file)

invisible(x)
}
Expand Down

0 comments on commit 52a5165

Please sign in to comment.