rnb.get.directory

Description

Gets the location of the given report-specific directory.

Usage

1
2
rnb.get.directory(report, dir = c("data", "images", "images-high", "pdfs"),
  absolute = FALSE)

Arguments

report

Report of interest.

dir

Type of directory to get. Must be one of "data", "images", "images-high" or "pdfs".

absolute

Flag indicating if the absolute path of the directory is to be returned. If this is FALSE, the directory name is returned relative to the report's HTML file location.

Value

Path of the requested directory as a single-element character vector.

Author(s)

Yassen Assenov

See Also

Report for functions adding contents to an HTML report

Examples

1
2
report <- createReport("example.html", "Example", init.configuration = TRUE)
rnb.get.directory(report, "data")

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.