Skip to content

Commit 3650094

Browse files
committed
use yaml::verbatim_logical directly
1 parent 84fc369 commit 3650094

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Imports:
3131
tools,
3232
utils,
3333
xfun,
34-
yaml
34+
yaml (>= 2.3.10)
3535
Suggests:
3636
bslib,
3737
callr,

R/utils.R

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,7 @@ relative_to_wd <- function(path) {
66
# Specific YAML handlers
77
# as quarto expects YAML 1.2 and yaml R package supports 1.1
88
yaml_handlers <- list(
9-
# Handle yes/no from 1.1 to 1.2
10-
# https://github.com/vubiostat/r-yaml/issues/131
11-
logical = function(x) {
12-
value <- ifelse(x, "true", "false")
13-
structure(value, class = "verbatim")
14-
}
9+
logical = yaml::verbatim_logical
1510
)
1611

1712
#' @importFrom yaml as.yaml

0 commit comments

Comments
 (0)