knitr 1.28
BUG FIXES
hook_pdfcrop()
no longer crops images included viainclude_graphics()
now (thanks, @hpages #1797, @salim-b #1800).
MAJOR CHANGES
-
If the
hook_pdfcrop()
is enabled, the non-PDF image will be cropped only if the magick package is available, otherwise it will signal a message. In the previous version, it will signal an error (thanks, @trannhatanh89, #1796). -
By default,
include_graphics(files)
will signal an error if anyfiles
do not exist and are not web resources. To avoid the error (e.g., if you think it is a false positive), useinclude_graphics(..., error = FALSE)
(thanks, @hadley, #1717).