Skip to content

Commit

Permalink
refactor: use fs for profile path
Browse files Browse the repository at this point in the history
  • Loading branch information
Nenuial committed Sep 16, 2024
1 parent e1b0ac5 commit 43e5711
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions R/render.R
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,9 @@ add_links <- function(path, main_language, # nolint: cyclocomp_linter

document_path <- path

lang_profile <- file.path(
project_dir, paste0("_quarto-", language_code, ".yml")
lang_profile <- fs::path(
project_dir, paste0("_quarto-", language_code),
ext = "yml"
)
if (fs::file_exists(lang_profile)) {
lang_config <- read_yaml(lang_profile)
Expand Down

0 comments on commit 43e5711

Please sign in to comment.