Insert text only if knitting to pdf

insert_if_knitting_to_pdf(..., sep = "")

Arguments

...

The text to insert; will be paste together the separator.

sep

The separator.

Value

Nothing; the text is printed using [cat()].

Examples

### This will show nothing unless you happen to knit this ### document, like in the Pkgdown version of the manual. insert_if_knitting_to_pdf("This only shows up in the PDF version.");