On school, we work with code chunks, the:
```{R}
```
But when i open Rstudio, The chunks do not work. There is also no insert button to add a chunk. Can someone help me please?
Greetings Bas
On school, we work with code chunks, the:
```{R}
```
But when i open Rstudio, The chunks do not work. There is also no insert button to add a chunk. Can someone help me please?
Greetings Bas
What exactly doesn't work? One obvious thing is that it should look like this:
```{r}
```
So r
instead of R
.
When i open a new file, the ```{r} does not create a grey chunck. It's doesn't do anything. But when i open a R markdown file instead of a R script, it does work. But i don't like the R markdown files.
In R script you don't need chunks to run code. You would use RMarkdown when you want to combine code/text/graphs in one document.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.