I have been trying to write a book which compiles to pdf, gitbook and epub. I sought a solution that would allow me to knit GIFs when I render as a gitbook while still rendering an image with pdf.
Found your function include_graphics2 which seems like it should help...but I am getting issues with your default code.
If I change the png_url so that the extension is ".PNG instead of .png it will no longer give this error but then the image won't work (because the URL is case sensitive).
I have been trying to write a book which compiles to pdf, gitbook and epub. I sought a solution that would allow me to
knit
GIFs when I render as agitbook
while still rendering an image with pdf.Found your function
include_graphics2
which seems like it should help...but I am getting issues with your default code.I created a blank RMarkdown file
This document will result in the following error
If I change the
png_url
so that the extension is ".PNG instead of .png it will no longer give this error but then the image won't work (because the URL is case sensitive).Any ideas on how to fix this?