How to force Knitr to evaluate \Sexpr after all other code chunks
问题 I am trying to write an abstract for a dynamic document, but my \Sexpr{} calls are not working. Essentially all I am trying to do is start the document off with an abstract that has p-values generated from \Sexpr{value} where value is determined "downstream" in the document. For example This works: \begin{document} <<foo>>= value = 10 @ Today I bought \Sexpr{value} Salamanders \end{document} This does not work (and what I am trying to accomplish) \begin{document} Today I bought \Sexpr{value}