rnb.get.directory: rnb.get.directory

Description Usage Arguments Value Author(s) See Also Examples

View source: R/Report-methods.R

Description

Gets the location of the given report-specific directory.

Usage

1
2
3
4
5
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")

RnBeads documentation built on March 3, 2021, 2 a.m.