From 8104d692ece74acb91f2ac87e88226ce8e6e8eb1 Mon Sep 17 00:00:00 2001 From: olivroy Date: Mon, 18 Mar 2024 08:42:01 -0400 Subject: [PATCH] Minor corrections --- R/sitrep.R | 2 +- R/utils-yaml.R | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/R/sitrep.R b/R/sitrep.R index a79f54964..7d2bfa217 100644 --- a/R/sitrep.R +++ b/R/sitrep.R @@ -33,7 +33,7 @@ pkgdown_sitrep <- function(pkg = ".") { "!" = "{.emph Double-check the following URLs:}", " " = "{pkgdown_config_href({pkg$src_path})} contains URL {.url {pkg$meta['url']}}", " " = "{.file DESCRIPTION} contains URL{?s} {.url {desc_urls}}" - )) + )) } else { cli::cli_warn(c( "pkgdown situation report: {.emph {cli::col_red('configuration error')}}", diff --git a/R/utils-yaml.R b/R/utils-yaml.R index b10c2abc9..127d3b6fb 100644 --- a/R/utils-yaml.R +++ b/R/utils-yaml.R @@ -41,9 +41,9 @@ pkgdown_field <- function(pkg, fields, cfg = FALSE, fmt = FALSE) { if (cfg) { if (fmt) { - config_path <- pkgdown_config_href(pkg$src_path) + config_path <- cli::format_inline(pkgdown_config_href(pkg$src_path)) } else { - config_path <- cli::format_inline(pkgdown_config_relpath(pkg)) + config_path <- pkgdown_config_relpath(pkg) } paste0(flds, " in ", config_path)