You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using learnr to create a quiz for my students and I wonder if it is possible to include pictures in learnr? I know how to include picture in rmarkdoen, but the same code doesn't work for learnr. There is no error, just the picture is not shown when I run the code. I apologize if this a stupid quesion; I am just starting with R and still have a lot to learn. However, I googled that issue already, but I didn't find an answer.
I'd appreciate any advice!
The text was updated successfully, but these errors were encountered:
it works the same as with shiny applications. Create a folder (called “www”) and adjust the path in markdown to ![](www/picture.png). Or you can use the html tag: <img src="www/picture.png" style="width: 80%"/>.
If the image is part of the static content, you can include it just like in a regular R Markdown document: ![image description](picture.png).
This doesn't work for images that are shown as part of the dynamic content. When an image appears in a question or another part of your app, place the image in an images/ folder next to your tutorial. learnr makes sure that folder is accessible by the shiny app that runs the tutorial, so you can reference the image as ![image description](images/picture.png). (This is very much in line with @edgar-treischl's answer above, but I recommend this approach instead so you don't have to worry as much about the path to the image.)
Hello,
I am using learnr to create a quiz for my students and I wonder if it is possible to include pictures in learnr? I know how to include picture in rmarkdoen, but the same code doesn't work for learnr. There is no error, just the picture is not shown when I run the code. I apologize if this a stupid quesion; I am just starting with R and still have a lot to learn. However, I googled that issue already, but I didn't find an answer.
I'd appreciate any advice!
The text was updated successfully, but these errors were encountered: