Re: [R] Sweave, beamer and alert within code chunks

2012-05-09 Thread Yihui Xie
Syntax highlighting is easy with the highlight package, on which the knitr package is based, e.g. - sample source: https://gist.github.com/1803930 - sample pdf: https://github.com/downloads/yihui/knitr/knitr-beamer.pdf It is possible to insert \alert{} with knitr, but you have to provide the logi

[R] Sweave, beamer and alert within code chunks

2012-05-09 Thread Giovanni Petris
Hi all, Using Beamer, in order to highlight a piece of R code I do something like this - note the "\structure" and "\alert" commands: \begin{semiverbatim} > mleOut <- \structure{dlmMLE}(Nile, + parm = c(0.2, 120), # initial values for optimizer + lower = c(1e-7,