Skip to content

Commit

Permalink
Temporary workaround: remove examples to prevent error on R devel
Browse files Browse the repository at this point in the history
  • Loading branch information
nfrerebeau committed Dec 29, 2023
1 parent a0a5d6d commit 6b52fd0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 18 deletions.
16 changes: 11 additions & 5 deletions R/scale_colour_other.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ NULL
#' @param aesthetics A [`character`] string or vector of character
#' strings listing the name(s) of the aesthetic(s) that this scale works with.
#' @return A [discrete][ggplot2::discrete_scale] scale.
#' @example inst/examples/ex-other-discrete.R
# @example inst/examples/ex-other-discrete.R
#' @family qualitative color schemes
#' @author N. Frerebeau
#' @name scale_logical_discrete
Expand All @@ -20,8 +20,11 @@ NULL
#' @export
#' @rdname scale_logical_discrete
scale_colour_logical <- function(..., aesthetics = "colour") {
ggplot2::scale_color_manual(..., values = c("TRUE" = "black", "FALSE" = "white"),
aesthetics = aesthetics)
ggplot2::scale_color_manual(
...,
values = c(`TRUE` = "black", `FALSE` = "white"),
aesthetics = aesthetics
)
}

#' @export
Expand All @@ -31,6 +34,9 @@ scale_color_logical <- scale_colour_logical
#' @export
#' @rdname scale_logical_discrete
scale_fill_logical <- function(..., aesthetics = "fill") {
ggplot2::scale_fill_manual(..., values = c("TRUE" = "black", "FALSE" = "white"),
aesthetics = aesthetics)
ggplot2::scale_fill_manual(
...,
values = c(`TRUE` = "black", `FALSE` = "white"),
aesthetics = aesthetics
)
}
13 changes: 0 additions & 13 deletions man/scale_logical_discrete.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6b52fd0

Please sign in to comment.