R Markdown broken image icon in Xaringan presentation

223 Views Asked by At

I am new to Xaringan presentations in R and right now I am trying to create a demo presentation. Currently, I am facing an issue with displaying a picture from a local network drive path (same path for both the .md and .png file).

The image outputs fine in the chunk output but appears as a broken icon after knitting.

enter image description here

enter image description here

How can I fix this?

Code

# Introduce yourself

> Hello, my name is Ed.

---
class: center, middle

# Slide with centered content in the middle

My name is Ed and I like to eat gravy and hangout with Edd and Eddy.

---
class: inverse, center, middle

# Slide with Ed's picture

![img_caption](O:/network_drive_path/ed.png) 
0

There are 0 best solutions below