From b8381d45ad3c4c3add8302c9a222f796911488cf Mon Sep 17 00:00:00 2001 From: Hadley Wickham Date: Fri, 12 Apr 2024 07:34:45 -0500 Subject: [PATCH] Update snapshot test & fix typo cc @jayhesselberth --- R/sitrep.R | 2 +- tests/testthat/_snaps/sitrep.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/R/sitrep.R b/R/sitrep.R index a9fb6fed5..3d08b8fa6 100644 --- a/R/sitrep.R +++ b/R/sitrep.R @@ -18,7 +18,7 @@ pkgdown_sitrep <- function(pkg = ".") { if (is.null(pkg$meta[["url"]])) { msg_fld <- pkgdown_field(pkg, "url", cfg = TRUE, fmt = TRUE) - warns <- c(warns, x = paste0(msg_fld, " is absent. See {.vignette pkgdown::metatdata}.")) + warns <- c(warns, x = paste0(msg_fld, " is absent. See {.vignette pkgdown::metadata}.")) } desc_urls <- pkg$desc$get_urls() diff --git a/tests/testthat/_snaps/sitrep.md b/tests/testthat/_snaps/sitrep.md index 9db0b1198..81e20593a 100644 --- a/tests/testthat/_snaps/sitrep.md +++ b/tests/testthat/_snaps/sitrep.md @@ -5,7 +5,7 @@ Condition Warning: pkgdown situation report: configuration error - x url in _pkgdown.yml is misconfigured. See `vignette(pkgdown::metatdata)`. + x url in _pkgdown.yml is absent. See `vignette(pkgdown::metadata)`. x 'DESCRIPTION' URL is empty. ---