As a beginner i cant really fathom why i cant see "mpg" data
Welcome to the community!
This should not have happened, as far as I can see. Questions:
- Is it only for
mpg? Or for any data? Try with
- Is it only when you try
rmarkdown? Or, always? Open a new R session, both in RStudio and R GUI and check.
Can you run this and share the output? Solving this is beyond my scope, but someone who can will probably require this?
- Tried iris but result is same
- Tried with new project & r notebook but failed again.
But it worked with R GUI
What is the version number for
Are all packages updated? Make sure they are and then restart RStudio and try again.
Running R 4.0.2 with tidyverse 1.3.0 works for me.
Hmm, that is odd.
Incidentally, the output should show up either in the console or inline but it does neither in your case. If you knit the notebook, does the resulting html file contain the expected output? Or is that a wash too?
I changed the output settings. Console works now but got problem with inline
Only thing I can think of re: the output not showing up inline is to try a
daily build and when you install it, don't overwrite the stable version of RStudio you have running. See if the daily build solves the issue?
Is is because the dataset's name is "mtcars".
data("mtcars") summary(mtcars$mpg) Min. 1st Qu. Median Mean 3rd Qu. Max. 10.40 15.43 19.20 20.09 22.80 33.90
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.