```{r}
knitr::include_graphics(path = "~/Desktop/R/Files/apple.jpg/")
```
The above code chunk works fine. However, when I create a for
loop, knitr::include_graphics
does not appear to be working.
```{r}
fruits <- c("apple", "banana", "grape")
for(i in fruits){
knitr::include_graphics(path = paste("~/Desktop/R/Files/", i, ".jpg", sep = ""))
}
```