Skip to content

Commit 8b74c95

Browse files
jeroencderv
andauthored
Allow quarto_path() to return NULL (#221)
Co-authored-by: Christophe Dervieux <[email protected]>
1 parent 0fcb998 commit 8b74c95

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
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.9003
3+
Version: 1.4.4.9004
44
Authors@R: c(
55
person("JJ", "Allaire", , "[email protected]", role = "aut",
66
comment = c(ORCID = "0000-0003-0174-9868")),

NEWS.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
- Fix an error with interactive prompt for extension approval (thanks, @wjschne, #212).
1010

11+
- `quarto_path()` now correctly return `NULL` when no quarto is found in the PATH (thanks, @jeroen, #220, #221).
12+
1113
# quarto 1.4.4
1214

1315
- `quarto_preview()` now looks at `quarto preview` log to browse to the correct url when inside RStudio viewer (thanks, @aronatkins, #167).
@@ -29,7 +31,7 @@
2931
- New `is_using_quarto()` to check if a directory requires using Quarto (i.e. it has a `_quarto.yml` or at least one `*.qmd` file) (thanks, @hadley, #103).
3032

3133
- New `quarto_create_project()` calls `quarto create project <type> <name>` (thanks, @maelle, #87).
32-
34+
DESC
3335
- New `quarto_add_extension()` and `quarto_use_template()` to deal with Quarto extensions for a Quarto project. (thanks, @mcanouil, #45, @remlapmot, #42).
3436

3537
- `quarto_render()` and `quarto_inspect()` gains a `profile` argument (thanks, @andrewheiss, #95, @salim-b, #123).

R/quarto.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ quarto_path <- function() {
1010
path_env <- get_quarto_path_env()
1111
quarto_path <- if (is.na(path_env)) {
1212
path <- unname(Sys.which("quarto"))
13-
if (nzchar(path)) path else NULL
13+
if (nzchar(path)) path else return(NULL)
1414
} else {
1515
path_env
1616
}

0 commit comments

Comments
 (0)