I use the following to create a D2L exam from the "capital.Rmd" example (I converted the question to schoice)
schoice
exams2blackboard("capi