I think you are just missing the closing backticks in your code chunk i.e. ```, all code chunks should look like this, with opening and closing backticks.
```{r}
print(dtc)
```
If this doesn't solve your problem, please provide a proper REPRoducible EXample (reprex) illustrating your issue.