yihui / knitr-examples

A collection of knitr examples
488 stars 586 forks source link

Messages with false appendLF still gets seperated #58

Closed EmilRehnberg closed 6 years ago

EmilRehnberg commented 7 years ago

I cloned the repo and executed ./knitall but the output for the 117-messages.md differs from the output in the repo in that the messages are separated even though the appendLF flag is set to FALSE.

Any idea as to what is the cause of this?

R version 3.4.1 (2017-06-30)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: OS X El Capitan 10.11.6

Output from the last 20 lines.

A message in message(..., appendLF = FALSE) will be merged with the next adjacent message:

f3 = function() {
    message("Hello ", appendLF = FALSE)
    message("World!")
}
f3()
## Hello
## World!
yihui commented 7 years ago

I cannot reproduce your issue. Is everything up-to-date? e.g. update.packages(ask = FALSE, checkBuilt = TRUE)