Get image to appear on github page (Knit R Markdown -> README)


I have not been able to tweak the solutions on this Stack Overflow page so that a couple images appear on my Github page (README). Most of my images appear just fine and they are all in the repository base folder.

I only see a link that does not work rather than an image for cases like "R Project image" even though the URL looks essentially the same as the URLs for images that do appear. All images appear correctly when I knit on my computer, but the Github results are not changing after I push the committed work out.

The Stack Overflow answers refer to adjusting the base.url argument of knitr$set. I also have not found a successful solution in



I solved the problem by capitalizing the PNG extension. Renaming the file on my hard drive did not solve the problem. Github still showed the capitalized extension from the first time I pushed out the files.

1 Like


If your question's been answered (even by you!), would you mind choosing a solution? It helps other people see which questions still need help, or find solutions if they have similar problems. Here’s how to do it:

1 Like

closed #4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.