I am running into a problem when trying to include a web-based image within a R Markdown PDF document.
Minimal Example:
---
title: "Random"
output: pdf_document
---
![Benjamin Bannekat](https://octodex.github.com/images/bannekat.png)
Knitting the above results in the error:
! Package pdftex.def Error: File `https://octodex.github.com/images/bannekat.pn g' not found.
However, if I use the following code, the image shows up:
---
title: "Random"
output:
html_document: default
html_notebook: default
---
![Benjamin Bannekat](https://octodex.github.com/images/bannekat.png)
The same code works fine when output is HTML.
How can I make the image show up in a PDF document?
See Question&Answers more detail:os