Reputation: 31
Is there any way to have knitr respect messages that don't end with line breaks? I haven't found a hook that governs this behavior, maybe I just missed it.
\documentclass{article}
\begin{document}
<<>>=
do_stuff <- function() {
message("Doing some stuff...", appendLF = FALSE)
message("done.")
}
do_stuff()
@
\end{document}
The result includes a line break between the first and second messages, but if you run it in R there is no such break.
Upvotes: 3
Views: 87