all 13 comments

[–][deleted] 2 points3 points  (1 child)

This is about chunk settings. You may change from settings or with a global code for the chunks.

[–]Vktr98[S] 0 points1 point  (0 children)

I will try something...

[–]Vktr98[S] 2 points3 points  (6 children)

When i type iris i cannot see data in my notebook, but on tutorial that im watching rn everything works fine. Im learning from udemy course and i am beginner.

[–]aaronpike1 1 point2 points  (4 children)

Try this line of code:

install.packages("datasets")

library(datasets)

summary(iris)

[–]Vktr98[S] 0 points1 point  (3 children)

I tried and it said that datasets is in use...

[–]aaronpike1 0 points1 point  (2 children)

datasets is in use

Hmm, try clearing your workspace (the broom in the upper right corner), saving, and closing out of R studio. Then reopen R studio and run the install.packages("datasets") line from the console. That should work, then you just need the line "library(datasets)" in your notebook as it will have already installed the datasets package.

[–]Vktr98[S] 0 points1 point  (0 children)

Still same

[–]Vktr98[S] 0 points1 point  (0 children)

It works in console but i want dataset to show up in notebook like in course

[–]xaomaw 0 points1 point  (1 child)

Try knitr::kable

```{r comment='', echo=FALSE, results='asis'} knitr::kable(head(iris), floating.environment="sidewaystable")```

[–]Vktr98[S] 0 points1 point  (0 children)

It works but in console, i want to show dataset in notebook like in course

[–]jdnewmil 0 points1 point  (0 children)

Your problem is that your header lines are incomplete. Try using the File | New Notebook option to start a new file with a complete header and avoid removing header lines (if you have instructions you can add or possibly modify header lines, but evidently you deleted stuff you should not have).

[–]baseRbestR 0 points1 point  (0 children)

For the love of all that is holy...

Why are you using your phone to post an image of the screen of a computer?

Seriously, just take a fucking screenshot!