390-2020-09-Fall / foofactors

Minimally viable R package based on the "R Packages" book Chapter 2: The whole game
https://r-pkgs.org/whole-game.html
Other
1 stars 0 forks source link

My first reprex #13

Open rudeboybert opened 4 years ago

rudeboybert commented 4 years ago
library(dplyr)
#> Warning: package 'dplyr' was built under R version 4.0.2
#> 
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#> 
#>     filter, lag
#> The following objects are masked from 'package:base':
#> 
#>     intersect, setdiff, setequal, union

ggplot(mtcars, aes(x = as.factor(cyl), y = hp)) +
  geom_boxplot()
#> Error in ggplot(mtcars, aes(x = as.factor(cyl), y = hp)): could not find function "ggplot"

Created on 2020-10-06 by the reprex package (v0.3.0)

rudeboybert commented 4 years ago
library(dplyr)
#> Warning: package 'dplyr' was built under R version 4.0.2
#> 
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#> 
#>     filter, lag
#> The following objects are masked from 'package:base':
#> 
#>     intersect, setdiff, setequal, union
library(ggplot2)

ggplot(mtcars, aes(x = as.factor(cyl), y = hp)) +
  geom_boxplot()

Created on 2020-10-06 by the reprex package (v0.3.0)