I am trying to print data.frame in R markdown, but nothing display when run the code.

I am trying to execute the "print" function from the chunk in R markdown but nothing appears. Even when I select the object with the cursor, nothing appears below.

image

I already tried to reinstall Rstudio but the problem persists. It's really stressful to work like this.

Can anybody help me?

What happens when you type in the console : class(dtc)

Hi!
This happens...
image

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.

Hi! Thank you, but that isn't the reason. For example, I'm trying with the next code

iris <- data.frame(iris)
print(iris)

But the data.frame doesn't appear under the chunk. On the other hand, when I execute the code in the console, the data.frame does appear.

I intalled Rstudio a few days ago, and i have had the problem ever since.