From ed251951912c67aef8b20e508325fbec6daf4210 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Demi=C3=A1n=20Villalba?= <32423469+rikivillalba@users.noreply.github.com> Date: Mon, 16 Dec 2024 13:57:26 -0300 Subject: [PATCH] Update vignettes/_translation_links.R Co-authored-by: Michael Chirico --- vignettes/_translation_links.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vignettes/_translation_links.R b/vignettes/_translation_links.R index 324cf77c4..8c549c96f 100644 --- a/vignettes/_translation_links.R +++ b/vignettes/_translation_links.R @@ -13,7 +13,7 @@ pattern = glob2rx(knitr::current_input(FALSE)) ) transl_lang = ifelse(dirname(translation) == ".", "en", dirname(translation)) - block = if (length(which(transl_lang != lang))) { + block = if (!all(transl_lang == lang)) { sprintf( fmt, paste(collapse = " | ", sprintf( "[%s](%s)",