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

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -