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 ?
Jump to Contents
Code Chunks
Quote Snippets
Show-Hide Spoilers
Markdown Text Formatting
Code Chunks
You type in community:
``` r
#> A code chunk
library(foo)
```
You get:
#> A code chunk
library(foo)
This is easier to read.
It also creates a clear chunk of code for others can copy and paste into their own R environment.
Inline Code
Type this:
I really wanted you to see `this_code_here`
See this:
I really wanted you to see this_code_here
Quote Snippets
If you highlight the content and click quote it will automatically populate the reply with the formatted code:
[image]
[quote="stephhazlitt, post:5, topic:6246, full:true"]
How do you insert a quote from the th…
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