LMSouq
moodle-core Open

How to add existing images to R-exams questions

CO
Community Contributor
1 month ago
3 views
Problem Description
In RMarkdown I usually use somewhat like ```{r} knitr::include_graphics("myimage.png") ``` to add already existing images to the output, but this doesn't work via `exams2xyz()`. `fig.path = "", fig.caption = ""` does not fix the problem. The classic Markdown way `![alt text](figures/img.png)`doesn't work, too. Any ideas, where I'm wrong? EDIT: Thank's to @jaySF I'm now aware of an working directory issue, but still face the challange to embed the figures into (e.g.) the .xml-questions for moodle import.

AI-Generated Solution

Powered by LMSouq AI · GPT-4.1-mini

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base