@apreshill I'm actually making my slides by referring to your xaringan tutorial slides!
I've set out.width and out.height in the global options chunk and I used knitr::include_graphics
but I can't see my images in my slides, even though I can run the function in my Rmd
Hmm I don't - can you see the images fine with plain old markdown syntax? I typically do just one or the other of those 2 args, out.width on a per-plot-basis usually with fig.retina = 3 as a global. And I'm not sure what you mean re: run the function in your Rmd but can't see in your slides.
Yes, I can see images fine with markdown syntax. But, I can't change the size of the image with markdown syntax, so I'm trying out knitr::include_graphics("workshop-images/moon.jpg")
Here is what I mean by "run the function in your Rmd but can't see in your slides.":
Have you tried showing in a real browser window? Sometimes the RStudio viewer works not well. Click the icon next to the broom.
If it is working on local render, I'm wondering whether you have a file path issue- is workshop-images a subfolder within the same directory that tryR-workshop-slides.Rmd is?
You don't happen to have eval = FALSE set as a global chunk option in your .Rmd?
If your question's been answered, 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: