Sfoglia il codice sorgente

v0.4.0 (#59)

tags/v0.4.0
Garrick Aden-Buie 5 anni fa
parent
commit
3a1d9f3467
Nessun account collegato all'indirizzo email del committer
5 ha cambiato i file con 22 aggiunte e 18 eliminazioni
  1. +1
    -1
      DESCRIPTION
  2. +8
    -8
      NEWS.md
  3. +1
    -8
      cran-comments.md
  4. +3
    -0
      pkgdown/_pkgdown.yml
  5. +9
    -1
      tests/testthat/test-ggplot2.R

+ 1
- 1
DESCRIPTION Vedi File

@@ -1,7 +1,7 @@
Type: Package
Package: xaringanthemer
Title: Custom 'xaringan' CSS Themes
Version: 0.3.4.9000
Version: 0.4.0
Authors@R:
person(given = "Garrick",
family = "Aden-Buie",

+ 8
- 8
NEWS.md Vedi File

@@ -1,23 +1,23 @@
# xaringanthemer (development version)
# xaringanthemer 0.4.0

* Added `text_bold_font_weight` argument to xaringanthemer style functions with
a corresponding CSS rule setting the `font-weight` property of `<strong>`
elements (thanks @matiasandina, #50).
* The style functions gain a `link_decoration` argument to set the
[`text-decoration`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration)
property for links (#57).
* Set slide number font size in `rem` so that increasing the font size at the
slide level doesn't result in giant slide numbers (#53).

* The xaringanthemer slide skeleton (R Markdown template) will now render when
packages that are used in the template but not in xaringanthemer's Imports are
not installed (#52).

* Set slide number font size in `rem` so that increasing the font size at the
slide level doesn't result in giant slide numbers (#53).
* xaringanthemer no longer sets the `fig.showtext` chunk option when the
showtext package isn't installed and also when `fig.showtext = FALSE`
(thanks @mikedecr #36, #56).
* The style functions gain a `link_decoration` argument to set the
[`text-decoration`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration)
property for links (#57).

# xaringanthemes 0.3.4


+ 1
- 8
cran-comments.md Vedi File

@@ -1,8 +1 @@
## R CMD check results

0 errors | 0 warnings | 0 notes

No reverse dependencies.

Replaces previous submission with corrected links
for three URLs that were moved to a new location.
This is a new submission. This update is maintenance release.

+ 3
- 0
pkgdown/_pkgdown.yml Vedi File

@@ -9,6 +9,9 @@ home:
Give your xaringan slides some style with xaringanthemer.
Easy slide and plot themes for xaringan slides.

development:
mode: auto

template:
opengraph:
twitter:

+ 9
- 1
tests/testthat/test-ggplot2.R Vedi File

@@ -499,18 +499,26 @@ describe("scale_xaringan_*", {

})

test_that("register_font() returns the name of the font family if font pkgs are missing", {
test_that("register_font() returns the name of the font family if {showtext} is missing", {
text_font_family <- xaringanthemer_font_default("text_font_family")

family_showtext_missing <- testthat::with_mock(
`xaringanthemer:::requires_package` = function(pkg, ...) pkg != "showtext",
register_font(text_font_family, google = TRUE)
)

expect_equal(family_showtext_missing, text_font_family)
})

test_that("register_font() returns the name of the font family if {sysfonts} is missing", {
skip_if_not_installed("showtext")

text_font_family <- xaringanthemer_font_default("text_font_family")

family_sysfonts_missing <- testthat::with_mock(
`xaringanthemer:::requires_package` = function(pkg, ...) pkg != "sysfonts",
register_font(text_font_family, google = TRUE)
)

expect_equal(family_sysfonts_missing, text_font_family)
})

Loading…
Annulla
Salva