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

Serena'a first reprex #20

Open Serenali1108 opened 3 years ago

Serenali1108 commented 3 years ago

library(dplyr)

> Warning: package 'dplyr' was built under R version 3.6.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"

rudeboybert commented 3 years ago

Close! Be sure to just paste the contents of your clipboard here, not copy and paste what shows up in the RStudio Viewer

rudeboybert commented 3 years ago

Take a look at #13 for an example output

Serenali1108 commented 3 years ago
library(dplyr)
#> Warning: package 'dplyr' was built under R version 3.6.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 3 years ago

Great! now try it with library(ggplot2) added

Serenali1108 commented 3 years ago

I tried to close Rstudio and open it up again, and added ggplots, it shows this in my console: Error in x[[n]] : attempt to select less than one element in integerOneIndex Rendering reprex... Error: callr subprocess failed: Timeout was reached: Connection timed out after 10000 milliseconds Type .Last.error.trace to see where the error occured