R markdown cannot use macro parameter # in horizontal mode

  Kiến thức lập trình

For an homework assignment I decided to use item for each sub question. In one question where we have to show the r output, I was encountered the error “You cannot use ‘macro parameter character #’ in horizontal mode when I was trying to include an output from r (the r code compiled successfully). I am guessing that is has something to do item mode and r code.

So far none of the prof/ta in my department has practical solution. Any help is appreciated.

enter image description here

Error disappear when I did not include the R output as item

New contributor

Kevin Jiang is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.