text: user2482: I am making some R markdown documents for my stats class.  I've noticed I get an error in some functions when I have a code block with {r}  instead of just r.  Like so...
  ``` r
  this code will be fine
  ``` 
  
  ``` {r}
  this code will have an error
  ```
  
  When should I be using the brackets for codeblocks in .Rmd and when should I leave them out?
  
  user73: Does it work without a space between the ``` and the {r}? It may be that the Rmd processor is getting confused about the spaces, but ignoring the bare r, and assuming the code is R by default.
  The examples here don't have spaces:
  https://rmarkdown.rstudio.com/lesson-3.html
  
original_text: 2482: <p>I am making some R markdown documents for my stats class.  I've noticed I get an error in some functions when I have a code block with {r}  instead of just r.  Like so...</p>
  <pre><code>``` r
  this code will be fine
  ``` 
  
  ``` {r}
  this code will have an error
  ```
  </code></pre>
  <p>When should I be using the brackets for codeblocks in .Rmd and when should I leave them out?</p>
   73: <p>Does it work without a space between the <code>```</code> and the <code>{r}</code>? It may be that the Rmd processor is getting confused about the spaces, but ignoring the bare <code>r</code>, and assuming the code is R by default.</p>
  <p>The examples here don't have spaces:</p>
  <p><a href="https://rmarkdown.rstudio.com/lesson-3.html" rel="nofollow noreferrer">https://rmarkdown.rstudio.com/lesson-3.html</a></p>
  