cis-ds / Discussion

Public discussion
10 stars 15 forks source link

Getting File Not Found Error When Trying to Include Image From Local Computer #163

Closed avivawaldman closed 3 years ago

avivawaldman commented 3 years ago

I am trying to include an image from my local computer, having saved the images to a folder within the files tab in RStudio. The line I am trying to use is : My cat Moose. However, Markdown says that the resource path is not found. I got the file path directly from the "copy path" function of my computer, so I am confused as to why it is not working and would appreciate any help. Thank you!

bensoltoff commented 3 years ago

The format for a link is

![My cat Moose](location-of-file.jpg)

No need for quotation marks. Also you need to refer to the location of the file relative to README.md. So based on what I see in your post, it should look something like

![My cat Moose](images/IMG_0369.jpg)
avivawaldman commented 3 years ago

Thank you! That worked!