Skip to content

Commit 3c46699

Browse files
authored
normalize quarto_path() (#209)
1 parent f5befb1 commit 3c46699

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: quarto
22
Title: R Interface to 'Quarto' Markdown Publishing System
3-
Version: 1.4.4.9001
3+
Version: 1.4.4.9002
44
Authors@R: c(
55
person("JJ", "Allaire", , "[email protected]", role = "aut",
66
comment = c(ORCID = "0000-0003-0174-9868")),

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
- Add `quarto.quiet` options to allow more verbose error message when `quarto_*` function are used inside other package.
44
For example, inside **pkgdown** for building Quarto vignettes. **pkgdown** sets `quiet = TRUE` internally for its call to `quarto_render()`,
55
and setting `options(quarto.quiet = TRUE)` allows to overwrite this.
6+
7+
- `quarto_path()` now returns a normalized path with potential symlink resolved, for less confusion with `quarto_binary_sitrep()` (thanks, @jennybc).
68

79
# quarto 1.4.4
810

R/quarto.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@
88
#' @export
99
quarto_path <- function() {
1010
path_env <- get_quarto_path_env()
11-
if (is.na(path_env)) {
11+
quarto_path <- if (is.na(path_env)) {
1212
path <- unname(Sys.which("quarto"))
1313
if (nzchar(path)) path else NULL
1414
} else {
1515
path_env
1616
}
17+
normalizePath(quarto_path, winslash = "/", mustWork = FALSE)
1718
}
1819

1920
get_quarto_path_env <- function() {

0 commit comments

Comments
 (0)