Hi, I think you can indent the chunk (Alt+Shift+Right) to keep it inside the enumerate environment, however, I don't think it is possible to put the chunk directly after \item if you use the Chunk environment, i.e. you need to write something after \item, and the chunk can be put in the next paragraph but still belongs to this \item.
Or you can directly insert a TeX code environment (Ctrl+L) and type your R code chunk there. Again, however, you should remember to insert a blank line before you write <<>>=, because Sweave can only recognize the code chunks with no other characters before <<. Regards, Yihui -- Yihui Xie <xieyi...@gmail.com> Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Sun, May 22, 2011 at 9:55 AM, Lucas <lth...@mail.unomaha.edu> wrote: > Is it possible to have a SWeave chunk inside an enumerate \item? When I try > to > add one, LyX kicks me back out of the enumerate environment. (This is with > LyX > 2.0.0 on Debian testing.) > >