Skip to content

Commit

Permalink
document function
Browse files Browse the repository at this point in the history
  • Loading branch information
wlandau committed Nov 11, 2024
1 parent f923954 commit 95d4c9e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
17 changes: 9 additions & 8 deletions R/tar_quarto_files.R
Original file line number Diff line number Diff line change
Expand Up @@ -114,16 +114,17 @@ tar_quarto_files_project <- function(path, quiet) {
out

Check warning on line 114 in R/tar_quarto_files.R

View check run for this annotation

Codecov / codecov/patch

R/tar_quarto_files.R#L114

Added line #L114 was not covered by tests
}

#' Get Source Files From Quarto Inspect
#'
#' @title Get Source Files From Quarto Inspect
#' @description Collects all files from the
#' `fileInformation` field that are used in the current report.
#'
#' `fileInformation` field that are used in the current report.
#' @details `fileInformation` contains a list of files. Each file entry contains
#' two data frames. The first, `includeMap`, contains a `source` column (files
#' that include other files, e.g. the main report file) and a `target` column
#' (files that get included by the `source` files). The `codeCells` data frame
#' contains all code cells from the files represented in `includeMap`.
#' two data frames. The first, `includeMap`, contains a `source` column (files
#' that include other files, e.g. the main report file) and a `target` column
#' (files that get included by the `source` files). The `codeCells` data frame
#' contains all code cells from the files represented in `includeMap`.
#' @return A character vector of Quarto source files.
#' @param file_information The `fileInformation` element of the list
#' returned by `quarto::quarto_inspect()`.
tar_quarto_files_get_source_files <- function(file_information) {
ret <- character(0)

Expand Down
7 changes: 7 additions & 0 deletions man/tar_quarto_files_get_source_files.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 95d4c9e

Please sign in to comment.