'Answerlist with two columns only on specific questions

Is there a way of specifying an answerlist with two columns directly in the .rmd question?

I am preparing a single choice pdf exam using R exams exams2pdf(myexam, n=1) with answer lists containing either only texts or only images, and I would like to make some questions with the answerlist in a two-column layout (e.g. only questions that contain images). I've seen the possibility of changing the template, but that would change the layout for all questions.

  ```{r, echo = FALSE, results = "hide"}
     exams::include_supplement("a.jpg")
     exams::include_supplement("b.jpg")
     exams::include_supplement("c.jpg")
     exams::include_supplement("d.jpg")
  ```
Question
========
What is the seat of the federal authorities in Switzerland (i.e., the de facto capital)

Answerlist
----------
* ![](a.jpg){width=10%}
* ![](b.jpg){width=10%}
* ![](c.jpg){width=10%}
* ![](d.jpg){width=10%}

Meta-information
================
exname: Swiss Capital
extype: schoice
exsolution: 0100
exshuffle: 4

pdf outcome using exams2pdf(myexam, n=1)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source