Skip to content

Instantly share code, notes, and snippets.

@maurolepore
Last active October 6, 2021 17:18
Show Gist options
  • Save maurolepore/da6e16805cafd2ae6bef63be57aa1500 to your computer and use it in GitHub Desktop.
Save maurolepore/da6e16805cafd2ae6bef63be57aa1500 to your computer and use it in GitHub Desktop.

Here: https://git.io/Jw3JJ

--

This code

reprex::reprex(wd = ".", {
  library(devtools)
  run_examples(start = "scale_fill_r2dii")
})

yields this output:

library(devtools)
#> Loading required package: usethis
run_examples(start = "scale_fill_r2dii")
#> ℹ Updating r2dii.plot documentation
#> ℹ Loading r2dii.plot
#> Writing NAMESPACE
#> Writing NAMESPACE
#> ── Running 4 example files ─────────────────────────────────────── r2dii.plot ──
#> ℹ Loading r2dii.plot
#> 
#> > ### Name: scale_colour_r2dii
#> > ### Title: Custom 2DII colour and fill scales
#> > ### Aliases: scale_colour_r2dii scale_color_r2dii scale_fill_r2dii
#> > 
#> > ### ** Examples
#> > 
#> > library(ggplot2, warn.conflicts = FALSE)
#> 
#> > ggplot(data = mpg) +
#> +  geom_point(mapping = aes(x = displ, y = hwy, color = class)) +
#> +  scale_colour_r2dii()
#> 
#> > ggplot(data = mpg) +
#> +  geom_histogram(mapping = aes(x = cyl, fill = class), position = "dodge") +
#> +  scale_fill_r2dii()
#> Error in scale_fill_r2dii(): could not find function "scale_fill_r2dii"
#> ℹ Loading r2dii.plot

Created on 2021-10-06 by the reprex package (v2.0.1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment