Skip to content

Commit

Permalink
fix #2469: use all(is_blank()) for xfun 0.38
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Mar 24, 2023
1 parent c2d165a commit c7fa3e4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: rmarkdown
Title: Dynamic Documents for R
Version: 2.20.1
Version: 2.20.2
Authors@R: c(
person("JJ", "Allaire", , "[email protected]", role = "aut"),
person("Yihui", "Xie", , "[email protected]", role = c("aut", "cre"), comment = c(ORCID = "0000-0003-0645-5666")),
Expand Down
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ rmarkdown 2.21

- Now HTML output formats use the Font Awesome HTML dependency from the **fontawesome** package instead of shipping an outdated version of Font Awesome in **rmarkdown** (thanks, @rich-iannone, #2451).

- Fixed a bug caused by a change in the `is_blank()` function in **xfun** 0.38 (thanks, @andreahgsin, #2469).


rmarkdown 2.20
================================================================================

Expand Down
2 changes: 1 addition & 1 deletion R/shiny_prerendered.R
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ shiny_prerendered_option_hook <- function(input) {

if (identical(options$context, "server")) {
# if empty server context, set a default server function
if (xfun::is_blank(options$code)) {
if (all(xfun::is_blank(options$code))) {
options$code <- "# empty server context"
}
}
Expand Down

0 comments on commit c7fa3e4

Please sign in to comment.