Commit using the knit2html function instead of the RStudio button so that the figures were placed in the figures directory.