| Type: Package | Type: Package | ||||
| Package: xaringanthemer | Package: xaringanthemer | ||||
| Title: Custom 'xaringan' CSS Themes | Title: Custom 'xaringan' CSS Themes | ||||
| Version: 0.3.4.9000 | |||||
| Version: 0.4.0 | |||||
| Authors@R: | Authors@R: | ||||
| person(given = "Garrick", | person(given = "Garrick", | ||||
| family = "Aden-Buie", | family = "Aden-Buie", |
| # xaringanthemer (development version) | |||||
| # xaringanthemer 0.4.0 | |||||
| * Added `text_bold_font_weight` argument to xaringanthemer style functions with | * Added `text_bold_font_weight` argument to xaringanthemer style functions with | ||||
| a corresponding CSS rule setting the `font-weight` property of `<strong>` | a corresponding CSS rule setting the `font-weight` property of `<strong>` | ||||
| elements (thanks @matiasandina, #50). | 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 | * 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 | packages that are used in the template but not in xaringanthemer's Imports are | ||||
| not installed (#52). | 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 | * xaringanthemer no longer sets the `fig.showtext` chunk option when the | ||||
| showtext package isn't installed and also when `fig.showtext = FALSE` | showtext package isn't installed and also when `fig.showtext = FALSE` | ||||
| (thanks @mikedecr #36, #56). | (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 | # xaringanthemes 0.3.4 | ||||
| ## 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. |
| Give your xaringan slides some style with xaringanthemer. | Give your xaringan slides some style with xaringanthemer. | ||||
| Easy slide and plot themes for xaringan slides. | Easy slide and plot themes for xaringan slides. | ||||
| development: | |||||
| mode: auto | |||||
| template: | template: | ||||
| opengraph: | opengraph: | ||||
| twitter: | twitter: |
| }) | }) | ||||
| 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") | text_font_family <- xaringanthemer_font_default("text_font_family") | ||||
| family_showtext_missing <- testthat::with_mock( | family_showtext_missing <- testthat::with_mock( | ||||
| `xaringanthemer:::requires_package` = function(pkg, ...) pkg != "showtext", | `xaringanthemer:::requires_package` = function(pkg, ...) pkg != "showtext", | ||||
| register_font(text_font_family, google = TRUE) | register_font(text_font_family, google = TRUE) | ||||
| ) | ) | ||||
| expect_equal(family_showtext_missing, text_font_family) | 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( | family_sysfonts_missing <- testthat::with_mock( | ||||
| `xaringanthemer:::requires_package` = function(pkg, ...) pkg != "sysfonts", | `xaringanthemer:::requires_package` = function(pkg, ...) pkg != "sysfonts", | ||||
| register_font(text_font_family, google = TRUE) | register_font(text_font_family, google = TRUE) | ||||
| ) | ) | ||||
| expect_equal(family_sysfonts_missing, text_font_family) | expect_equal(family_sysfonts_missing, text_font_family) | ||||
| }) | }) |