title: Verbatim code chunks with double quotation marks in RMarkdown
body: <p>As demonstrated in <a href="https://bookdown.org/yihui/rmarkdown-cookbook/verbatim-code-chunks.html" rel="nofollow noreferrer">4.7 Verbatim code chunks</a> in @Yihui 's <a href="https://bookdown.org/yihui/rmarkdown-cookbook/" rel="nofollow noreferrer">R Markdown Cookbook</a>, we can show a verbatim inline expression,
  <code>`r knitr::inline_expr(&quot;coef(summary(model))&quot;)`</code>, for example, in our output of RMarkdown.
  However, this <code>knitr::inline_expr()</code> would not be able to parse a code with double quotation marks, such as
  <code>`r knitr::inline_expr(&quot;coef(summary(model))[&quot;(Intercept)&quot;, &quot;Estimate&quot;]&quot;)`</code>.
  Then, what should I do when I want to demonstrate the verbatim which contains such a special characters?</p>
  <pre><code>---
  title: &quot;Untitled&quot;
  author: &quot;CLRR&quot;
  date: &quot;2020/6/20&quot;
  documentclass: article
  output:
    bookdown::pdf_document2:
      latex_engine: xelatex
      keep_tex: TRUE
  ---
  
  This verbatim can appear in the output:
  
  `` `r knitr::inline_expr(&quot;coef(summary(model))&quot;)` ``
  
  &lt;!--
  But, if the code contains `&quot;`, the evaluation fails.
  
  `r knitr::inline_expr(&quot;coef(summary(model))[&quot;(Intercept)&quot;, &quot;Estimate&quot;]&quot;)`
  
  ```
  Quitting from lines 2-16 (test.Rmd) 
  Error in parse(text = code, keep.source = FALSE) : 
    &lt;text&gt;:1:54: unexpected string constant
  1: knitr::inline_expr(&quot;coef(summary(model))[&quot;(Intercept)&quot;, &quot;
                                                           ^
  Calls: &lt;Anonymous&gt; ... hook_eval -&gt; withVisible -&gt; eval -&gt; parse_only -&gt; parse
  Execution halted
  ```
  --&gt;
  </code></pre>