cderv
August 18, 2018, 5:22pm
2
Hi,
can you format your question correctly to help us understand better and see what your rmd file really look like ?
Formatting Code: the Basics
All code or console output you include in your posts should be formatted properly. Luckily, this is very easy to do! Just use the code formatting button at the top of the post editing box:
[image]
Select some code
Click the </> button!
The code formatting button automatically adds special Markdown formatting symbols to whatever you selected. If you check the preview pane to the right of your post, you'll see that the forum software now outputs nicely formatted code .
[04]
The code formatting button is pretty smart! It can tell the difference between snippets of code that are part of a sentence and blocks of code that stand alone. …
You can use 5 backticks instead of 3 to be able to include correctly the R code chunk
---
title:"test"
---
Text
# code chunk
```{r, eval = FALSE}
cat("test")
```
For your issue, it could be related to not having a title 1 in your Rmarkdown. If you begin with a ##
for the first title in your document, and not a title with #
, it will began the count to 0. However, not seing your code correctly, I am not sure...
2 Likes