Skip to content

Commit

Permalink
Use viridisLite instead of viridis + redocument (#511)
Browse files Browse the repository at this point in the history
  • Loading branch information
olivroy authored Jan 23, 2024
1 parent a1ce939 commit dcab6ba
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Imports:
stringr (>= 1.4),
tibble (>= 3.1),
tidyr (>= 1.1),
viridis (>= 0.6.2),
viridisLite (>= 0.4.2),
visNetwork (>= 2.1.0)
Suggests:
curl,
Expand All @@ -53,4 +53,4 @@ Config/testthat/edition: 3
Encoding: UTF-8
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.3
RoxygenNote: 7.3.0
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# DiagrammeR (development version)

* DiagrammeR now has a dependency on viridisLite instead of viridis (@olivroy, #511)

* DiagrammeR nows uses testthat 3rd edition (@olivroy, #498)

* No longer use deprecated features from tibble, igraph and tidyselect (>= 1.2.0) (@olivroy, #497, #507)
Expand Down
1 change: 0 additions & 1 deletion R/DiagrammeR-package.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#' @keywords internal
#' @aliases DiagrammeR-package
"_PACKAGE"

## usethis namespace: start
Expand Down
2 changes: 1 addition & 1 deletion R/colorize_edge_attrs.R
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ colorize_edge_attrs <- function(
if (palette %in% row.names(RColorBrewer::brewer.pal.info)) {
color_palette <- RColorBrewer::brewer.pal(num_recodings, palette)
} else if (palette == "viridis") {
color_palette <- viridis::viridis(num_recodings)
color_palette <- viridisLite::viridis(num_recodings)
color_palette <- gsub("..$", "", color_palette)
}
}
Expand Down
2 changes: 1 addition & 1 deletion R/colorize_node_attrs.R
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ colorize_node_attrs <- function(
if (palette %in% row.names(RColorBrewer::brewer.pal.info)) {
color_palette <- RColorBrewer::brewer.pal(num_recodings, palette)
} else if (palette == "viridis") {
color_palette <- viridis::viridis(num_recodings)
color_palette <- viridisLite::viridis(num_recodings)
color_palette <- gsub("..$", "", color_palette)
}
}
Expand Down
1 change: 0 additions & 1 deletion man/DiagrammeR-package.Rd

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

0 comments on commit dcab6ba

Please sign in to comment.