title: Sweave - using a variable from Latex into code chunks
body: <p>I need to use variable (ie. an argument of a custom command) from latex into a R inline code chunk. See, for instance :</p>
  <pre><code>\newcommand{\textvar}[1]{
    \textbf{
      \Sexpr{
         # Here, I would like to use the one argument of my \textvar command to do somthing in R
      }
    }
  }
  </code></pre>
  <p>Of course, I can't just add #1 like in pure Tex, it would just comment the line in R.</p>