Hi Guys<,
As part of my master course I have been asked to load the tidyverse with the following code
library(tidyverse)
#> ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.0 ──
#> ggplot2 3.3.2 purrr 0.3.4
#> tibble 3.0.3 dplyr 1.0.2
#> tidyr 1.1.2 stringr 1.4.0
#> readr 1.4.0 forcats 0.5.0
#> ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
#> dplyr::filter() masks stats::filter()
#> dplyr::lag() masks stats::lag()
in the console I got:
Error: unexpected input in "─"
#> ggplot2 3.3.2 purrr 0.3.4
#> tibble 3.0.3 dplyr 1.0.2
#> tidyr 1.1.2 stringr 1.4.0
#> readr 1.4.0 forcats 0.5.0
#> ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
#> dplyr::filter() masks stats::filter()
#> dplyr::lag() masks stats::lag()
#> ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.0 ──
#> ggplot2 3.3.2 purrr 0.3.4
#> tibble 3.0.3 dplyr 1.0.2
#> tidyr 1.1.2 stringr 1.4.0
#> readr 1.4.0 forcats 0.5.0
#> ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
#> dplyr::filter() masks stats::filter()
#> dplyr::lag() masks stats::lag()
during the lecture I have been asked to tape mpg to see what I get but in the console I got:
Error: object 'mpg' not found
Do you have an idea what am I suppose to see?
Then I was asked to type:
ggplot(data = mpg) +
geom_point(mapping = aes(x = displ, y = hwy))
in the console I got:
Error in ggplot(data = mpg) : could not find function "ggplot"
I'm stuck I can't figure out on Google what is the issue.
Does anyone could help me?