diff --git a/CRAN-SUBMISSION b/CRAN-SUBMISSION index b76c7d3..e472ae9 100644 --- a/CRAN-SUBMISSION +++ b/CRAN-SUBMISSION @@ -1,3 +1,3 @@ -Version: 0.2.0 -Date: 2024-02-05 00:58:20 UTC -SHA: 1c4ebfb29c81b971a45000ce86eb9bbbcd23326c +Version: 0.2.1 +Date: 2024-07-13 22:50:31 UTC +SHA: a02c67c46903e389769991a8b8d11eabd0b2ec3c diff --git a/DESCRIPTION b/DESCRIPTION index 7420aab..b47f849 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: palettes Title: Methods for Colour Vectors and Colour Palettes -Version: 0.2.0.9000 +Version: 0.2.1 Authors@R: person(given = "Michael", family = "McCarthy", @@ -36,7 +36,7 @@ Suggests: knitr (>= 1.22), rmarkdown (>= 2.20), colorspace, - gt, + gt (>= 0.9.0), biscale, sf, patchwork, diff --git a/NEWS.md b/NEWS.md index 661b912..9a5545d 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,6 @@ -# palettes (development version) +# palettes 0.2.1 + +This is a small patch release that applies some internal fixes for the `scale_()` functions, due to a breaking change in ggplot2 v3.5.0 that deprecated the `scale_name` argument in `ggplot2::continuous_scale()`, `ggplot2::discrete_scale()` and `ggplot2::binned_scale()`. The "gt" vignette has also been updated to reflect changes to the `gt::data_color()` function in gt v0.9.0. # palettes 0.2.0 diff --git a/revdep/README.md b/revdep/README.md index 685006e..89eb4f4 100644 --- a/revdep/README.md +++ b/revdep/README.md @@ -10,7 +10,7 @@ |collate |en_CA.UTF-8 | |ctype |en_CA.UTF-8 | |tz |America/Vancouver | -|date |2024-02-04 | +|date |2024-07-13 | |rstudio |2021.09.2+382 Ghost Orchid (desktop) | |pandoc |2.14.0.3 @ /Applications/RStudio.app/Contents/MacOS/pandoc/ (via rmarkdown) | @@ -18,22 +18,22 @@ |package |old |new |Δ | |:------------|:-----|:----------|:--| -|palettes |0.1.1 |0.1.1.9000 |* | +|palettes |0.2.0 |0.2.0.9000 |* | |cli |3.6.2 |3.6.2 | | |colorspace |2.1-0 |2.1-0 | | |fansi |1.0.6 |1.0.6 | | |farver |2.1.1 |2.1.1 | | -|ggplot2 |3.4.4 |3.4.4 | | +|ggplot2 |3.5.1 |3.5.1 | | |glue |1.6.2 |1.6.2 | | -|gtable |0.3.4 |0.3.4 | | +|gtable |0.3.5 |0.3.5 | | |isoband |0.2.7 |0.2.7 | | |labeling |0.4.3 |0.4.3 | | |lifecycle |1.0.4 |1.0.4 | | |magrittr |2.0.3 |2.0.3 | | -|munsell |0.5.0 |0.5.0 | | +|munsell |0.5.1 |0.5.1 | | |pillar |1.9.0 |1.9.0 | | |pkgconfig |2.0.3 |2.0.3 | | -|prismatic |1.1.1 |1.1.1 | | +|prismatic |1.1.2 |1.1.2 | | |purrr |1.0.2 |1.0.2 | | |R6 |2.5.1 |2.5.1 | | |RColorBrewer |1.1-3 |1.1-3 | | diff --git a/vignettes/gt.Rmd b/vignettes/gt.Rmd index baa42fa..2a53567 100644 --- a/vignettes/gt.Rmd +++ b/vignettes/gt.Rmd @@ -92,7 +92,7 @@ Here we pass the character vector directly to the `colors` argument. gt_tbl %>% data_color( columns = Temp, - colors = character_vector + palette = character_vector ) ``` @@ -102,7 +102,7 @@ But this works equally well with the colour mapping functions from palettes. gt_tbl %>% data_color( columns = Temp, - colors = pal_numeric(colour_vector, domain = NULL) + fn = pal_numeric(colour_vector, domain = NULL) ) ```