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)