Tidyverse 1.2.1 knitting to PDF issue

The other thread on this issue (Can't render tidyverse 1.2 startup message in LaTex) makes it more clear that the error is due to library(tidyverse) printing out messages that include characters that the default latex_engine can't support.

This stung me this morning and I don't want to switch latex_engines, if you don't need the messages to appear here are two solutions:

  1. suppressMessages on the library call
    suppressMessages(library("tidyverse"))

  2. Prevent the code chunk from printing messages

suppressMessages(library("tidyverse"))
2 Likes