How do you show line numbers in R Sweave chunk outputs? -
i writing document in sweave , echo r code chunks in final pdf with code lines. however, cannot seem find line numbers chunk option. know how include code lines in chunk echos?
for example, how can following chunk include 2 line numbers (1 , 2) when chunk echo'd pdf?
<<echo = t, eval = t>>= amount <- 5 5 * amount @
Comments
Post a Comment