Character vector in R as itemized list with knitr
问题 I have a vector (e.g. letters ) that I want to incorporate into my .Rnw knitr document as an itemized list. How do I do this? I have tried \Sexpr{letters} but it merely places commas between each: a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z Something like this is just as unhelpful: \begin{itemize} \item[\Sexpr{letters}] \end{itemize} What is the proper way to do this? I'm looking for a result like: a b c d e f etc. 回答1: \documentclass{article} \begin{document}