2
votes
1answer
29 views

R Chunk Code within Enumeration Environment with knitr in LyX

I need R Chunk Code within Enumeration Environment in Rnw file. The following .Rnw document works fine. \documentclass{article} \begin{document} \begin{enumerate} \item The quick brown fox jumps ...
2
votes
1answer
411 views

How can I have subfloats with knitr in LyX?

I have two knitr chunks in LyX that work fine by themselves in their separate floats (this post applies to both figures and tables). But when I try to put them in as subfloats (by selecting both and ...
1
vote
1answer
296 views

How do I reference an object inline in LyX that is in a knitr chunk?

Suppose I have an object that was processed in an earlier knitr chunk, say my_df <- read.dta('somefile.dta') x <- mean(my_df$age) Putting an inline knitr chunk does not work -- the knitr ...