Skip to content

Commit 100518c

Browse files
committed
in quarto_inspect() don't coerce JSON array to dataframe and keep list of list
1 parent 57d8a5b commit 100518c

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

NEWS.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
# quarto (development version)
22

3+
## BREAKING CHANGES
4+
5+
- In `quarto_inspect()`, JSON array xith JSON object are not coerced to data.frame anymore. This ensure list is returned for all elements of `fileInformation` object.
6+
7+
## NEW FEATURES
8+
39
- Add `quarto.quiet` options to allow more verbose error message when `quarto_*` function are used inside other package.
410
For example, inside **pkgdown** for building Quarto vignettes. **pkgdown** sets `quiet = TRUE` internally for its call to `quarto_render()`,
511
and setting `options(quarto.quiet = TRUE)` allows to overwrite this.
612

13+
## MINOR CHANGES
14+
715
- `quarto_path()` now returns a normalized path with potential symlink resolved, for less confusion with `quarto_binary_sitrep()` (thanks, @jennybc).
816

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

R/inspect.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#' @param input The input file or project directory to inspect.
1010
#'
1111
#' @return Named list. For input files, the list contains the elements
12-
#' `quarto`, `engines`, `formats`, `resources`, plus `project` if the file is
12+
#' `quarto`, `engines`, `formats`, `resources`, `fileInformation` plus `project` if the file is
1313
#' part of a Quarto project. For projects, the list contains the elements
1414
#' `quarto`, `dir`, `engines`, `config` and `files`.
1515
#'
@@ -47,5 +47,5 @@ quarto_inspect <- function(input = ".",
4747

4848
res <- quarto_run(args, quarto_bin = quarto_bin)
4949

50-
fromJSON(res$stdout)
50+
jsonlite::fromJSON(res$stdout, simplifyDataFrame = FALSE)
5151
}

man/quarto_inspect.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)