Nothing
#' List outputs of the factory
#'
#' This function can be used to list available report outputs stored in the
#' factory, in inside the `outputs` folder (or any subfolder within).
#'
#' @inheritParams list_reports
#'
#' @return A character vector containing the names of the reports in the
#' specified factory (empty if there were no files).
#'
#' @export
list_outputs <- function(factory = ".", pattern = NULL, ...) {
# get the root directory of the factory
tmp <- validate_factory(factory)
root <- tmp$root
outputs <- tmp$outputs
# get a listing of all files and folders in report_sources
out <- list.files(path = file.path(root, outputs), recursive = TRUE)
# grep to filter file paths
if (!is.null(pattern)) {
out <- grep(pattern, out, value = TRUE, ...)
}
out
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.