Skip to content

Commit

Permalink
Support recent changes in vdiffr; remove httpgd from suggests; update…
Browse files Browse the repository at this point in the history
… snapshots (#149)

* Get thematic working with vdiffr again; update snapshots

* Update news

* Take off experimental badge

* Remove httpgd from Suggests

* `devtools::document()` (GitHub Actions)

* `devtools::build_readme()` (GitHub Actions)

---------

Co-authored-by: cpsievert <cpsievert@users.noreply.github.com>
  • Loading branch information
cpsievert and cpsievert authored Feb 12, 2024
1 parent 813475a commit 07d4aae
Show file tree
Hide file tree
Showing 31 changed files with 1,014 additions and 1,098 deletions.
3 changes: 1 addition & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ Suggests:
gganimate,
ggiraph,
htmltools,
httpgd,
jsonlite,
knitr,
lattice,
Expand All @@ -61,7 +60,7 @@ Config/Needs/routine: ggrepel
Config/Needs/website: GGally, RColorBrewer, patchwork, apreshill/quillt
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.3
RoxygenNote: 7.3.1
Collate:
'auto.R'
'base.R'
Expand Down
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# thematic 0.1.4

* The `{httpgd}` graphics device (and thus, Github codespaces) is now supported. (#143)
* `{thematic}` now works with recent versions of the `{vdiffr}` package. (#149)

# thematic 0.1.3

Expand Down
3 changes: 2 additions & 1 deletion R/hooks.R
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,9 @@ get_device_function <- function(name = infer_device()) {
agg_jpeg = ragg::agg_jpeg,
Cairo = Cairo::Cairo,
devSVG = svglite::svglite,
devSVG_vdiffr = svglite::svglite,
dsvg_device = ggiraph::dsvg,
httpgd = httpgd::hgd,
httpgd = getFromNamespace("hgd", "httpgd"),
# TODO: support cairoDevices? tikz?
stop(
"thematic doesn't (yet) support the '", name, "' graphics device. ",
Expand Down
1 change: 0 additions & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ set.seed(1234)
<!-- badges: start -->
[![R build status](https://github.com/rstudio/thematic/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/rstudio/thematic)
[![CRAN status](https://www.r-pkg.org/badges/version/thematic)](https://CRAN.R-project.org/package=thematic)
[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html)
<!-- badges: end -->

Simplified theming of `{ggplot2}`, `{lattice}`, and `{base}` R graphics. In addition to providing a [centralized approach](https://rstudio.github.io/thematic/articles/custom.html) to styling R graphics, `{thematic}` also enables [automatic styling](https://rstudio.github.io/thematic/articles/auto.html) of R plots in Shiny, R Markdown, and RStudio.
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
status](https://github.com/rstudio/thematic/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/rstudio/thematic)
[![CRAN
status](https://www.r-pkg.org/badges/version/thematic)](https://CRAN.R-project.org/package=thematic)
[![Lifecycle:
experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html)
<!-- badges: end -->

Simplified theming of `{ggplot2}`, `{lattice}`, and `{base}` R graphics.
Expand Down
14 changes: 7 additions & 7 deletions tests/testthat/_snaps/ggplot/geombar.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 07d4aae

Please sign in to comment.